[llvm] [libc][cmake] Make libc not included in LLVM_ENABLE_PROJECTS=all. (PR #142626)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 08:01:42 PDT 2025
https://github.com/lntue created https://github.com/llvm/llvm-project/pull/142626
Make LLVM libc to not be included in `LLVM_ENABLE_PROJETS=all`. It can still be manually added to LLVM_ENABLE_PROJECTS list.
>From e405536a584987a50beb3cae1bbfa1258766b6fd Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Tue, 3 Jun 2025 14:56:49 +0000
Subject: [PATCH] [libc][cmake] Make libc not included in
LLVM_ENABLE_PROJECTS=all.
---
llvm/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index ed44b16bf9aeb..5b08b2839d828 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -108,7 +108,7 @@ endif()
# LLVM_EXTERNAL_${project}_SOURCE_DIR using LLVM_ALL_PROJECTS
# This allows an easy way of setting up a build directory for llvm and another
# one for llvm+clang+... using the same sources.
-set(LLVM_ALL_PROJECTS "bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;lld;lldb;mlir;openmp;polly;pstl")
+set(LLVM_ALL_PROJECTS "bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libclc;lld;lldb;mlir;openmp;polly;pstl")
if (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
# Disallow 'openmp' as a LLVM PROJECT on AIX as the supported way is to use
# LLVM_ENABLE_RUNTIMES.
@@ -116,7 +116,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
endif()
# The flang project is not yet part of "all" projects (see C++ requirements)
-set(LLVM_EXTRA_PROJECTS "flang")
+set(LLVM_EXTRA_PROJECTS "flang" "libc")
# List of all known projects in the mono repo
set(LLVM_KNOWN_PROJECTS "${LLVM_ALL_PROJECTS};${LLVM_EXTRA_PROJECTS}")
set(LLVM_ENABLE_PROJECTS "" CACHE STRING
More information about the llvm-commits
mailing list