@@ -34,8 +34,6 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
34
34
add_definitions ("-D_DEBUG" )
35
35
endif ()
36
36
37
- add_compile_options ("-Werror=global-constructors" )
38
-
39
37
# Default to C++17
40
38
set (CMAKE_CXX_STANDARD 17 )
41
39
@@ -130,25 +128,20 @@ else()
130
128
endif ()
131
129
endif ()
132
130
133
- # Defines LIBC_TARGET_ARCHITECTURE and associated macros.
134
- set (LIBC_TARGET_TRIPLE "" CACHE STRING "The target triple for the libc build." )
135
- include (LLVMLibCArchitectures )
136
-
137
- # Some targets can only support the full build.
138
- set (default_to_full_build OFF )
139
- if (LIBC_TARGET_OS_IS_GPU )
140
- set (default_to_full_build ON )
141
- endif ()
142
-
143
- option (LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" ${default_to_full_build} )
131
+ option (LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" OFF )
144
132
option (LLVM_LIBC_IMPLEMENTATION_DEFINED_TEST_BEHAVIOR "Build LLVM libc tests assuming our implementation-defined behavior" ON )
145
133
option (LLVM_LIBC_ENABLE_LINTING "Enables linting of libc source files" OFF )
146
134
135
+ set (LIBC_TARGET_TRIPLE "" CACHE STRING "The target triple for the libc build." )
136
+
147
137
option (LIBC_CONFIG_PATH "The path to user provided folder that configures the build for the target system." OFF )
148
138
149
139
set (LIBC_ENABLE_UNITTESTS ON )
150
140
set (LIBC_ENABLE_HERMETIC_TESTS ${LLVM_LIBC_FULL_BUILD} )
151
141
142
+ # Defines LIBC_TARGET_ARCHITECTURE and associated macros.
143
+ include (LLVMLibCArchitectures )
144
+
152
145
set (LIBC_CONFIG_JSON_FILE_LIST "" )
153
146
154
147
if (NOT LIBC_CONFIG_PATH )
0 commit comments