[clang] [llvm] Move MLIR before clang for in the list of external projects (PR #86085)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 20 22:23:30 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Nathan Lanza (lanza)
<details>
<summary>Changes</summary>
clang now depends on MLIR and thus we need to include it first for it's
dependencies to be added properly.
---
Full diff: https://github.com/llvm/llvm-project/pull/86085.diff
2 Files Affected:
- (added) clang/test/CIR/CodeGen/basic.c (+1)
- (modified) llvm/tools/CMakeLists.txt (+1-2)
``````````diff
diff --git a/clang/test/CIR/CodeGen/basic.c b/clang/test/CIR/CodeGen/basic.c
new file mode 100644
index 00000000000000..5c1031cccc41a2
--- /dev/null
+++ b/clang/test/CIR/CodeGen/basic.c
@@ -0,0 +1 @@
+// RUN: true
diff --git a/llvm/tools/CMakeLists.txt b/llvm/tools/CMakeLists.txt
index c6116ac81d12b2..ef4ac1eff6eba0 100644
--- a/llvm/tools/CMakeLists.txt
+++ b/llvm/tools/CMakeLists.txt
@@ -37,11 +37,10 @@ add_llvm_tool_subdirectory(llvm-profdata)
# Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly
# specified.
+add_llvm_external_project(mlir)
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
add_llvm_external_project(flang)
add_llvm_external_project(bolt)
``````````
</details>
https://github.com/llvm/llvm-project/pull/86085
More information about the cfe-commits
mailing list