From a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 22 Dec 2024 08:04:25 +0800 Subject: Use -finput-charset=ascii only if supported Check if -finput-charset=ascii is supported before using it in check-installed-headers.sh. Signed-off-by: H.J. Lu Reviewed-by: Sam James --- scripts/check-installed-headers.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/check-installed-headers.sh b/scripts/check-installed-headers.sh index b8cdcbf858..64cbfda544 100644 --- a/scripts/check-installed-headers.sh +++ b/scripts/check-installed-headers.sh @@ -130,8 +130,7 @@ $expanded_lib_mode #include <$header> int avoid_empty_translation_unit; EOF - if $cc_cmd -finput-charset=ascii -fsyntax-only $lang_mode \ - "$cih_test_c" 2>&1 + if $cc_cmd -fsyntax-only $lang_mode "$cih_test_c" 2>&1 then : else failed=1 fi -- cgit v1.2.3