chore: leanc: typo & minor modifications

This commit is contained in:
Sebastian Ullrich 2021-09-28 14:14:05 +02:00
parent 4c051896df
commit 2be3d97cdd

View file

@ -2,8 +2,9 @@
# used only for building Lean itself
root=$(dirname $0)
ldflags=("-L$root/lib/lean" "${LEANC_GMP:--lgmp}" @LEAN_EXTRA_LINKER_FLAGS@)
for arg in "@$"; do
# ccache dosn't like linker flags being passed here
for arg in "$@"; do
# ccache doesn't like linker flags being passed here
[[ "$arg" = "-c" ]] && ldflags=()
[[ "$arg" = "-v" ]] && set -x
done
${LEAN_CC:-@CMAKE_C_COMPILER@} "-I$root/include" @LEANC_EXTRA_FLAGS@ "$@" "${ldflags[@]}" -Wno-unused-command-line-argument
exec ${LEAN_CC:-@CMAKE_C_COMPILER@} "-I$root/include" @LEANC_EXTRA_FLAGS@ "$@" "${ldflags[@]}" -Wno-unused-command-line-argument