diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 08:04:25 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 12:42:02 +0800 |
| commit | a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3 (patch) | |
| tree | d67df1840e49c8d1978a924b2ae2c434fde93735 /scripts | |
| parent | fe925cb04585dd1cfca4094b255b3390bc56f770 (diff) | |
| download | glibc-a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3.tar.xz glibc-a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3.zip | |
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 <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/check-installed-headers.sh | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
