Skip to content

Commit 448f43c

Browse files
lanzachencha3
authored andcommitted
[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 llvm#86050 Reviewers: Pull Request: llvm#86210
1 parent 96969d7 commit 448f43c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/tools/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ add_llvm_tool_subdirectory(llvm-profdata)
3737

3838
# Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly
3939
# specified.
40-
add_llvm_external_project(clang)
4140
add_llvm_external_project(lld)
42-
add_llvm_external_project(lldb)
4341
add_llvm_external_project(mlir)
44-
# Flang depends on mlir, so place it afterward
42+
# ClangIR and Flang depend on mlir, lldb and Flang depend on clang, sort them
43+
# accordingly so place them afterwards
44+
add_llvm_external_project(clang)
4545
add_llvm_external_project(flang)
46+
add_llvm_external_project(lldb)
4647
add_llvm_external_project(bolt)
4748

4849
# Automatically add remaining sub-directories containing a 'CMakeLists.txt'

0 commit comments

Comments
 (0)