Skip to content

Commit

Permalink
chore: fix leanc.sh -v
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Nov 9, 2021
1 parent d9e4111 commit b36e253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/leanc.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ for arg in "$@"; do
done
cmd=(${LEAN_CC:-@CMAKE_C_COMPILER@} "-I$root/include" @LEANC_EXTRA_FLAGS@ @LEANC_INTERNAL_FLAGS@ "$@" "${ldflags[@]}" -Wno-unused-command-line-argument)
cmd=$(printf '%q ' "${cmd[@]}" | sed "s!ROOT!$root!g")
[[ $v == 1 ]] && printf '%q ' $cmd
[[ $v == 1 ]] && echo $cmd
eval $cmd

0 comments on commit b36e253

Please sign in to comment.