From: Emil Velikov Date: Mon, 4 Nov 2024 13:54:56 +0000 (+0000) Subject: scripts/sanitizer-env.sh: promote unknown compiler to warning/stderr X-Git-Tag: v34~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613a21d6624cedfb79fb3c994c04b652de82809f;p=thirdparty%2Fkmod.git scripts/sanitizer-env.sh: promote unknown compiler to warning/stderr Should make it more distinguishable, depending on shell and/or CI setup, from the informational message. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/219 Signed-off-by: Lucas De Marchi --- diff --git a/scripts/sanitizer-env.sh b/scripts/sanitizer-env.sh index 8a3a7d97..dcb80774 100755 --- a/scripts/sanitizer-env.sh +++ b/scripts/sanitizer-env.sh @@ -7,9 +7,9 @@ if [[ ${CC-} == *gcc* ]]; then elif [[ ${CC-} == *clang* ]]; then OUR_PRELOAD=$("$CC" -print-file-name=libclang_rt.asan-x86_64.so) else - cat <<- EOF + cat <<- EOF >&2 - Unknown compiler CC="${CC-}" - gcc and clang are supported. + WARNING: Unknown compiler CC="${CC-}" - gcc and clang are supported. Assuming "gcc", manually set the variable and retry if needed. EOF