[PATCH] D142919: [runtimes][libc] Keep the libc target as "libc".
Siva Chandra via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 23:26:50 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGafeb1c1601e8: [runtimes][libc] Keep the libc target as "libc". (authored by sivachandra).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142919/new/
https://reviews.llvm.org/D142919
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -161,12 +161,6 @@
# 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})
@@ -178,13 +172,13 @@
if(canon_name STREQUAL "COMPILER_RT")
list(APPEND prefixes SANITIZER DARWIN)
endif()
- if(canon_name STREQUAL "LLVMLIBC")
+ if(canon_name STREQUAL "LIBC")
list(APPEND prefixes "LLVM_LIBC")
list(APPEND prefixes "LIBC_")
endif()
string(FIND ${projName} "lib" LIB_IDX)
- if(LIB_IDX EQUAL 0)
+ if(LIB_IDX EQUAL 0 AND NOT projName STREQUAL "libc")
string(SUBSTRING ${projName} 3 -1 projName)
endif()
list(APPEND runtime_names ${projName})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142919.493497.patch
Type: text/x-patch
Size: 1261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230131/05a79afc/attachment.bin>
More information about the llvm-commits
mailing list