[PATCH] D99101: [runtimes] Add the libc project to the list of runtimes.
Siva Chandra via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 22 12:07:55 PDT 2021
sivachandra created this revision.
sivachandra added a reviewer: phosek.
Herald added a subscriber: mgorny.
sivachandra requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
This is possible as the default libc build now works under runtimes build.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99101
Files:
llvm/runtimes/CMakeLists.txt
runtimes/CMakeLists.txt
Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.4)
project(Runtimes C CXX ASM)
-set(LLVM_ALL_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind;openmp")
+set(LLVM_ALL_RUNTIMES "compiler-rt;libc;libcxx;libcxxabi;libunwind;openmp")
set(LLVM_ENABLE_RUNTIMES "" CACHE STRING
"Semicolon-separated list of runtimes to build (${LLVM_ALL_RUNTIMES}), or \"all\".")
if(LLVM_ENABLE_RUNTIMES STREQUAL "all" )
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -7,7 +7,7 @@
# build, see runtimes/CMakeLists.txt, except that we currently check whether
# compiler-rt is being built to determine whether to first build builtins
# or not so we need that information in this file as well.
-set(LLVM_ALL_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind;openmp")
+set(LLVM_ALL_RUNTIMES "compiler-rt;libc;libcxx;libcxxabi;libunwind;openmp")
set(LLVM_ENABLE_RUNTIMES "" CACHE STRING
"Semicolon-separated list of runtimes to build (${LLVM_ALL_RUNTIMES}), or \"all\".")
if(LLVM_ENABLE_RUNTIMES STREQUAL "all" )
@@ -166,6 +166,12 @@
# for all variables that will apply to runtimes.
foreach(entry ${runtimes})
get_filename_component(projName ${entry} NAME)
+ if(projName STREQUAL "libc")
+ # For now, we will use the name "llvmlibc" for the libc project as it is
+ # not a full libc yet. Also, if we leave it as is, the "lib" prefix gets
+ # stripped below and the targets endup having the name "c", "check-c" etc.
+ set(projName "llvmlibc")
+ endif()
string(REPLACE "-" "_" canon_name ${projName})
string(TOUPPER ${canon_name} canon_name)
list(APPEND prefixes ${canon_name})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99101.332390.patch
Type: text/x-patch
Size: 1874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210322/a3b3a58c/attachment.bin>
More information about the llvm-commits
mailing list