[llvm] d22cf43 - [cmake] Place clang behind mlir in the liist of external projects
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 16:52:23 PDT 2024
Author: Nathan Lanza
Date: 2024-03-21T19:52:19-04:00
New Revision: d22cf4365ca58ccf1db21341d63ac49921f1c47a
URL: https://github.com/llvm/llvm-project/commit/d22cf4365ca58ccf1db21341d63ac49921f1c47a
DIFF: https://github.com/llvm/llvm-project/commit/d22cf4365ca58ccf1db21341d63ac49921f1c47a.diff
LOG: [cmake] Place clang behind mlir in the liist of external projects
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.
reland of https://github.com/llvm/llvm-project/pull/86050
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/86210
Added:
Modified:
llvm/tools/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/tools/CMakeLists.txt b/llvm/tools/CMakeLists.txt
index c6116ac81d12b2..cde57367934e4b 100644
--- a/llvm/tools/CMakeLists.txt
+++ b/llvm/tools/CMakeLists.txt
@@ -37,12 +37,13 @@ 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 depend on mlir, lldb and Flang depend on clang, sort them
+# accordingly so place them afterwards
+add_llvm_external_project(clang)
add_llvm_external_project(flang)
+add_llvm_external_project(lldb)
add_llvm_external_project(bolt)
# Automatically add remaining sub-directories containing a 'CMakeLists.txt'
More information about the llvm-commits
mailing list