[libc-commits] [libc] 089f988 - [libc] Fix defaulting the full build

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Feb 25 05:27:28 PST 2025


Author: Joseph Huber
Date: 2025-02-25T07:27:23-06:00
New Revision: 089f988f46d7350827c38c1718d47caa56c5a206

URL: https://github.com/llvm/llvm-project/commit/089f988f46d7350827c38c1718d47caa56c5a206
DIFF: https://github.com/llvm/llvm-project/commit/089f988f46d7350827c38c1718d47caa56c5a206.diff

LOG: [libc] Fix defaulting the full build

Summary:
This was missing the architecture macros as they were defined just
below.

Added: 
    

Modified: 
    libc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index a4fbba92c2727..daec56ffd8ccb 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -128,6 +128,10 @@ else()
   endif()
 endif()
 
+# Defines LIBC_TARGET_ARCHITECTURE and associated macros.
+set(LIBC_TARGET_TRIPLE "" CACHE STRING "The target triple for the libc build.")
+include(LLVMLibCArchitectures)
+
 # Some targets can only support the full build.
 set(default_to_full_build OFF)
 if(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"
 option(LLVM_LIBC_IMPLEMENTATION_DEFINED_TEST_BEHAVIOR "Build LLVM libc tests assuming our implementation-defined behavior" ON)
 option(LLVM_LIBC_ENABLE_LINTING "Enables linting of libc source files" OFF)
 
-set(LIBC_TARGET_TRIPLE "" CACHE STRING "The target triple for the libc build.")
-
 option(LIBC_CONFIG_PATH "The path to user provided folder that configures the build for the target system." OFF)
 
 set(LIBC_ENABLE_UNITTESTS ON)
 set(LIBC_ENABLE_HERMETIC_TESTS ${LLVM_LIBC_FULL_BUILD})
 
-# Defines LIBC_TARGET_ARCHITECTURE and associated macros.
-include(LLVMLibCArchitectures)
-
 set(LIBC_CONFIG_JSON_FILE_LIST "")
 
 if(NOT LIBC_CONFIG_PATH)


        


More information about the libc-commits mailing list