File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,8 @@ foreach(feature IN LISTS ALL_COMPILER_FEATURES)
57
57
endforeach ()
58
58
59
59
message (STATUS "Compiler features available: ${AVAILABLE_COMPILER_FEATURES} " )
60
+
61
+ ### Compiler Feature Detection ###
62
+
63
+ # clang-8+, gcc-12+
64
+ check_cxx_compiler_flag ("-ftrivial-auto-var-init=pattern" LIBC_CC_SUPPORTS_PATTERN_INIT )
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ function(_get_common_compile_options output_var flags)
41
41
list (APPEND compile_options "-fno-unwind-tables" )
42
42
list (APPEND compile_options "-fno-asynchronous-unwind-tables" )
43
43
list (APPEND compile_options "-fno-rtti" )
44
- # clang-8+, gcc-12+
45
- check_cxx_compiler_flag ("-ftrivial-auto-var-init=pattern" LIBC_CC_SUPPORTS_PATTERN_INIT )
46
44
if (LIBC_CC_SUPPORTS_PATTERN_INIT )
47
45
list (APPEND compile_options "-ftrivial-auto-var-init=pattern" )
48
46
endif ()
You can’t perform that action at this time.
0 commit comments