mirror of
https://github.com/apache/nuttx.git
synced 2026-03-23 14:05:12 +08:00
Use C++ standard lib from toolchain
Signed-off-by: trns1997 <trns1997@gmail.com>
This commit is contained in:
@@ -481,15 +481,17 @@ if(WIN32)
|
||||
else()
|
||||
add_compile_options(
|
||||
# system wide warnings
|
||||
-Wall
|
||||
$<$<COMPILE_LANGUAGE:C>:-Wstrict-prototypes>
|
||||
-Wshadow
|
||||
-Wundef
|
||||
-Wall $<$<COMPILE_LANGUAGE:C>:-Wstrict-prototypes> -Wshadow -Wundef
|
||||
# system wide options
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-nostdinc++>
|
||||
$<$<COMPILE_LANGUAGE:ASM>:-D__ASSEMBLY__>)
|
||||
endif()
|
||||
|
||||
if(NOT CONFIG_LIBCXXTOOLCHAIN)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-nostdinc++>)
|
||||
else()
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-D_STDLIB_H_>)
|
||||
endif()
|
||||
|
||||
if(NOT CONFIG_CXX_EXCEPTION)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-fcheck-new>)
|
||||
|
||||
Reference in New Issue
Block a user