File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
dependency_support/com_icarus_iverilog Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ dir="$0.runfiles/com_icarus_iverilog"
22
22
vvp_dir=" ${0/% iverilog/ vvp} .runfiles/com_icarus_iverilog"
23
23
24
24
if [[ ! -d " $dir " ]]; then
25
- echo " Unable to find dependencies (looking under $dir )." 1>&2
26
- exit 1
25
+ dir=$( dirname $0 ) # use current directory it not launched directly from the :iverilog target.
26
+ fi
27
+ if [[ ! -d " $vvp_dir " ]]; then
28
+ vvp_dir=$( dirname $0 ) # use current directory it not launched directly from the :iverilog target.
27
29
fi
28
30
29
31
exec " $dir /iverilog-bin" -B" $dir " -BM" $vvp_dir " -DIVERILOG " $@ "
Original file line number Diff line number Diff line change 19
19
set -eu
20
20
21
21
dir=" $0 .runfiles/com_icarus_iverilog"
22
-
23
22
if [[ ! -d " $dir " ]]; then
24
- echo " Unable to find dependencies (looking under $dir )." 1>&2
25
- exit 1
23
+ dir=$( dirname $0 ) # use current directory it not launched directly from the :vvp target.
26
24
fi
27
25
28
26
exec " $dir /vvp-bin" -M" $dir " " $@ "
You can’t perform that action at this time.
0 commit comments