File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,12 @@ config ARCH_POSIX
144144 select BARRIER_OPERATIONS_BUILTIN
145145 # POSIX arch based targets get their memory cleared on entry by the host OS
146146 select SKIP_BSS_CLEAR
147+ # Override the C standard used for compilation to C 2011
148+ # This is due to some tests using _Static_assert which is a 2011 feature, but
149+ # otherwise relying on compilers supporting it also when set to C99.
150+ # This was in general ok, but with some host compilers and C library versions
151+ # it led to problems. So we override it to 2011 for the native targets.
152+ select REQUIRES_STD_C11
147153 help
148154 POSIX (native) architecture
149155
Original file line number Diff line number Diff line change @@ -196,11 +196,4 @@ if(NOT ${LLVM_SANITIZERS_ARG} STREQUAL "")
196196 target_compile_options (native_simulator INTERFACE ${LLVM_SANITIZERS_ARG} )
197197endif ()
198198
199- # Override the C standard used for compilation to C 2011
200- # This is due to some tests using _Static_assert which is a 2011 feature, but
201- # otherwise relying on compilers supporting it also when set to C99.
202- # This was in general ok, but with some host compilers and C library versions
203- # it led to problems. So we override it to 2011 for the native targets.
204- set_property (GLOBAL PROPERTY CSTD c11)
205-
206199add_subdirectory (core)
You can’t perform that action at this time.
0 commit comments