[llvm] 26c290b - [cmake] Place clang behind mlir in the list of external projects (#86050)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 22:43:03 PDT 2024


Author: Nathan Lanza
Date: 2024-03-21T01:42:59-04:00
New Revision: 26c290b46ac6b4a81feb28ae1862fac961138a24

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

LOG: [cmake] Place clang behind mlir in the list of external projects (#86050)

In preparation for the initial ClangIR upstreaming process, move clang
behind MLIR in the list of external projects. Otherwise, cmake will
attempt to build clang before MLIR.

Added: 
    

Modified: 
    llvm/tools/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/tools/CMakeLists.txt b/llvm/tools/CMakeLists.txt
index c6116ac81d12b2..2969877b9ee7c3 100644
--- a/llvm/tools/CMakeLists.txt
+++ b/llvm/tools/CMakeLists.txt
@@ -37,11 +37,11 @@ add_llvm_tool_subdirectory(llvm-profdata)
 
 # Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly
 # specified.
-add_llvm_external_project(clang)
 add_llvm_external_project(lld)
 add_llvm_external_project(lldb)
 add_llvm_external_project(mlir)
-# Flang depends on mlir, so place it afterward
+# ClangIR and Flang depends on mlir, so place them afterwards
+add_llvm_external_project(clang)
 add_llvm_external_project(flang)
 add_llvm_external_project(bolt)
 


        


More information about the llvm-commits mailing list