diff options
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r-- | scripts/build/cc/gcc.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 352f6518..35ac96e1 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -395,7 +395,9 @@ do_gcc_core_backend() { if [ "${CT_LIBC_PICOLIBC}" = "y" ]; then extra_config+=("--with-default-libc=picolibc") extra_config+=("--enable-stdio=pure") - extra_config+=("--disable-wchar_t") + if [ "${CT_PICOLIBC_older_than_1_8}" = "y" ]; then + extra_config+=("--disable-wchar_t") + fi fi core_LDFLAGS+=("${ldflags}") |