Skip to content

Commit 2e9ac05

Browse files
keith-packardstephanosio
authored andcommitted
picolibc: Don't disable wchar_t in libstdc++ for picolibc >= 1.8.1
Picolibc 1.8.1 includes stdio support for wchar_t, so we can now include wchar_t support in libstdc++. Signed-off-by: Keith Packard <[email protected]>
1 parent 53b5327 commit 2e9ac05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build/companion_libs/340-picolibc.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ do_cc_libstdcxx_picolibc()
4040
final_opts+=( "lang_list=c,c++" )
4141
final_opts+=( "build_step=libstdcxx" )
4242
final_opts+=( "extra_config+=('--enable-stdio=stdio_pure')" )
43-
final_opts+=( "extra_config+=('--disable-wchar_t')" )
43+
if [ "${CT_PICOLIBC_older_than_1_8}" = "y" ]; then
44+
final_opts+=( "extra_config+=('--disable-wchar_t')" )
45+
fi
4446
if [ "${CT_LIBC_PICOLIBC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
4547
final_opts+=( "enable_optspace=yes" )
4648
fi

0 commit comments

Comments
 (0)