Skip to content

Commit c2859bc

Browse files
stephanosionashif
authored andcommitted
cmake: compiler: Add nostdincxx property for gcc
This commit adds the `nostdincxx` C++ compiler property for GCC, which is specified when the C++ standard library (`CONFIG_LIB_CPLUSPLUS`) is disabled. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent fd4700d commit c2859bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/compiler/gcc/compiler_flags.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ if (NOT CONFIG_NEWLIB_LIBC AND
120120
set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC})
121121
endif()
122122

123+
set_compiler_property(TARGET compiler-cpp PROPERTY nostdincxx "-nostdinc++")
124+
123125
# Required C++ flags when using gcc
124126
set_property(TARGET compiler-cpp PROPERTY required "-fcheck-new")
125127

0 commit comments

Comments
 (0)