]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
scripts/sanitizer-env.sh: promote unknown compiler to warning/stderr
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 4 Nov 2024 13:54:56 +0000 (13:54 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 7 Nov 2024 17:07:41 +0000 (11:07 -0600)
Should make it more distinguishable, depending on shell and/or CI setup,
from the informational message.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/219
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
scripts/sanitizer-env.sh

index 8a3a7d9736d033459d999dd48c45d17a13142b77..dcb80774a34474ec22ee0930c0424c1cc6717ec0 100755 (executable)
@@ -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