chore: leanc: typo & minor modifications
This commit is contained in:
parent
4c051896df
commit
2be3d97cdd
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue