[llvm] [cmake] Place clang behind mlir in the liist of external projects (PR #86210)
Nathan Lanza via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 15:25:27 PDT 2024
https://github.com/lanza created https://github.com/llvm/llvm-project/pull/86210
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.
>From 1fc06f123c3194b680d357ee5a3d0aaa1a347340 Mon Sep 17 00:00:00 2001
From: Nathan Lanza <nathanlanza at gmail.com>
Date: Thu, 21 Mar 2024 22:25:18 +0000
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.5
---
llvm/tools/CMakeLists.txt | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
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