From a852b64bcdf716473ddbb9720997c7069d57da1a Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Sat, 30 Jan 2021 18:48:33 +0100 Subject: [PATCH] chore: leanc: do not pass linking flags when not linking Which suppresses a warning that may or may not have defeated ccache...? --- src/bin/leanc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/leanc.in b/src/bin/leanc.in index 3b238a7a1f..5272bc28fc 100755 --- a/src/bin/leanc.in +++ b/src/bin/leanc.in @@ -22,6 +22,7 @@ ldflags_ext=(@LEANC_STATIC_LINKER_FLAGS@) for arg in "$@"; do # passed -shared ~> switch to shared linker flags [[ $arg == "-shared" ]] && ldflags_ext=(@LEANC_SHARED_LINKER_FLAGS@) + [[ $arg == "-c" ]] && ldflags=() && ldflags_ext=() [[ $arg == "-print-cflags" ]] && echo "${cflags[@]} ${cflags_ext[@]}" && exit [[ $arg == "-print-ldflags" ]] && echo "${ldflags_ext[@]} ${ldflags[@]}" && exit done