File tree 1 file changed +6
-6
lines changed
templates/chisel/nix/gcd/scripts
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,25 +24,25 @@ cp -r "$_VCS_SIM_DAIDIR" "$_CURRENT/"
24
24
25
25
if [ -n " $_VCS_COV_DIR " ]; then
26
26
cp -vr " $_LIB /$_VCS_COV_DIR " " $_CURRENT /"
27
- _CM_ARG=" -cm assert -cm_dir $_CURRENT /$_VCS_COV_DIR "
27
+ _CM_ARG=" -cm assert -cm_dir . /$_VCS_COV_DIR " # vcs runs in $_CURRENT
28
28
fi
29
29
30
30
chmod -R +w " $_CURRENT "
31
+ pushd " $_CURRENT " > /dev/null
31
32
32
33
_emu_name=$( basename " $_VCS_SIM_BIN " )
33
34
_daidir=$( basename " $_VCS_SIM_DAIDIR " )
34
35
35
- export LD_LIBRARY_PATH=" $_CURRENT /$_daidir :$LD_LIBRARY_PATH "
36
+ export LD_LIBRARY_PATH=" $PWD /$_daidir :$LD_LIBRARY_PATH "
36
37
37
- " $_VCS_FHS_ENV " -c " $_CURRENT /$_emu_name $_CM_ARG $_EXTRA_ARGS " & > >( tee $_CURRENT /vcs-emu-journal.log)
38
+ " $_VCS_FHS_ENV " -c " . /$_emu_name $_CM_ARG $_EXTRA_ARGS " & > >( tee $. /vcs-emu-journal.log)
38
39
39
40
if [ -n " $_VCS_COV_DIR " ]; then
40
- " $_VCS_FHS_ENV " -c " urg -dir " $_CURRENT /$_VCS_COV_DIR " -format text"
41
- cp -vr ./urgReport " $_CURRENT /"
41
+ " $_VCS_FHS_ENV " -c " urg -dir " ./$_VCS_COV_DIR " -format text"
42
42
fi
43
43
44
44
if (( ${DATA_ONLY:- 0} )) ; then
45
- rm -f " $_CURRENT /$_emu_name "
45
+ rm -f " . /$_emu_name "
46
46
fi
47
47
48
48
set -e _emu_name _daidir
You can’t perform that action at this time.
0 commit comments