picolibc: Disable wchar_t use in libstdc++

Picolibc doesn't support wchar_t in stdio, so disable the use of these
functions from libstdc++.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2021-07-13 11:14:35 -07:00
parent 3782373c8c
commit 9dc8ebf871

View File

@ -40,6 +40,7 @@ do_cc_libstdcxx_picolibc()
final_opts+=( "lang_list=c,c++" )
final_opts+=( "build_step=libstdcxx" )
final_opts+=( "extra_config+=('--enable-stdio=stdio_pure')" )
final_opts+=( "extra_config+=('--disable-wchar_t')" )
if [ "${CT_LIBC_PICOLIBC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
final_opts+=( "enable_optspace=yes" )
fi