File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,10 @@ else()
128128 endif ()
129129endif ()
130130
131+ # Defines LIBC_TARGET_ARCHITECTURE and associated macros.
132+ set (LIBC_TARGET_TRIPLE "" CACHE STRING "The target triple for the libc build." )
133+ include (LLVMLibCArchitectures)
134+
131135# Some targets can only support the full build.
132136set (default_to_full_build OFF )
133137if (LIBC_TARGET_OS_IS_GPU)
@@ -138,16 +142,11 @@ option(LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc"
138142option (LLVM_LIBC_IMPLEMENTATION_DEFINED_TEST_BEHAVIOR "Build LLVM libc tests assuming our implementation-defined behavior" ON )
139143option (LLVM_LIBC_ENABLE_LINTING "Enables linting of libc source files" OFF )
140144
141- set (LIBC_TARGET_TRIPLE "" CACHE STRING "The target triple for the libc build." )
142-
143145option (LIBC_CONFIG_PATH "The path to user provided folder that configures the build for the target system." OFF )
144146
145147set (LIBC_ENABLE_UNITTESTS ON )
146148set (LIBC_ENABLE_HERMETIC_TESTS ${LLVM_LIBC_FULL_BUILD} )
147149
148- # Defines LIBC_TARGET_ARCHITECTURE and associated macros.
149- include (LLVMLibCArchitectures)
150-
151150set (LIBC_CONFIG_JSON_FILE_LIST "" )
152151
153152if (NOT LIBC_CONFIG_PATH)
You can’t perform that action at this time.
0 commit comments