Retire CONFIG_WCHAR_BUILTIN

wchar_t is always a builtin type for C++.

Note: boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs was broken.
(missing -)
This commit is contained in:
YAMAMOTO Takashi 2020-11-02 09:37:51 +09:00 committed by Xiang Xiao
parent e99e185712
commit 1184502661
6 changed files with 5 additions and 6 deletions

View File

@ -52,7 +52,7 @@ ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
ARCHCFLAGS += -nostdlib -ffreestanding
ARCHCXXFLAGS += -nostdlib -ffreestanding -DCONFIG_WCHAR_BUILTIN
ARCHCXXFLAGS += -nostdlib -ffreestanding
else
ARCHCFLAGS += -funwind-tables
ARCHCXXFLAGS += -fno-rtti -funwind-tables

View File

@ -59,7 +59,7 @@ ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new
ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
ARCHCFLAGS += -nostdlib -ffreestanding
ARCHCXXFLAGS += -nostdlib -ffreestanding -DCONFIG_WCHAR_BUILTIN
ARCHCXXFLAGS += -nostdlib -ffreestanding
else
ARCHCXXFLAGS += -fno-rtti
ifneq ($(CONFIG_DEBUG_NOOPT),y)

View File

@ -65,7 +65,7 @@ ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new
ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
ARCHCFLAGS += -nostdlib -ffreestanding
ARCHCXXFLAGS += -nostdlib -ffreestanding DCONFIG_WCHAR_BUILTIN
ARCHCXXFLAGS += -nostdlib -ffreestanding
else
ARCHCXXFLAGS += -fno-rtti
ifneq ($(CONFIG_DEBUG_NOOPT),y)

View File

@ -46,7 +46,7 @@ ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
ARCHCFLAGS += -nostdlib -ffreestanding
ARCHCXXFLAGS += -nostdlib -ffreestanding -DCONFIG_WCHAR_BUILTIN
ARCHCXXFLAGS += -nostdlib -ffreestanding
else
ARCHCFLAGS += -funwind-tables
ARCHCXXFLAGS += -fno-rtti -funwind-tables

View File

@ -54,7 +54,7 @@ ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
ifeq ($(CONFIG_ARMV7M_TOOLCHAIN_CLANGL),y)
ARCHCFLAGS += -nostdlib -ffreestanding
ARCHCXXFLAGS += -nostdlib -ffreestanding -DCONFIG_WCHAR_BUILTIN
ARCHCXXFLAGS += -nostdlib -ffreestanding
else
ARCHCXXFLAGS += -fno-rtti
ifneq ($(CONFIG_DEBUG_NOOPT),y)

View File

@ -957,7 +957,6 @@ if __name__ == '__main__':
lib_prj.make_output_dir(lib_name)
if lib_name == 'libxx':
lib_prj.add_misc('cxx_misc')
lib_prj.add_define('cxx_def', 'CONFIG_WCHAR_BUILTIN')
else:
lib_prj.add_misc('c_misc')