From 613a21d6624cedfb79fb3c994c04b652de82809f Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 4 Nov 2024 13:54:56 +0000 Subject: [PATCH] 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 --- scripts/sanitizer-env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3