[llvm] c382571 - [CMake] Forward CLANG_ENABLE_CIR to native tool builds (#222771)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 00:37:52 PDT 2026


Author: Mehdi Amini
Date: 2026-09-11T07:37:46Z
New Revision: c382571b2b3cede5de97cbbd314597db21f89435

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

LOG: [CMake] Forward CLANG_ENABLE_CIR to native tool builds (#222771)

Added: 
    

Modified: 
    llvm/cmake/modules/CrossCompile.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/CrossCompile.cmake b/llvm/cmake/modules/CrossCompile.cmake
index dc222610dd81b..a4c43d09c8386 100644
--- a/llvm/cmake/modules/CrossCompile.cmake
+++ b/llvm/cmake/modules/CrossCompile.cmake
@@ -102,6 +102,8 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype)
         -DLLVM_ENABLE_PROJECTS="${llvm_enable_projects_arg}"
         -DLLVM_EXTERNAL_PROJECTS="${llvm_external_projects_arg}"
         -DLLVM_ENABLE_RUNTIMES="${llvm_enable_runtimes_arg}"
+        # Forward options used to derive implicit project dependencies.
+        -DCLANG_ENABLE_CIR="${CLANG_ENABLE_CIR}"
         ${external_project_source_dirs}
         -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN}"
         -DLLVM_INCLUDE_BENCHMARKS=OFF


        


More information about the llvm-commits mailing list