[llvm] afeb1c1 - [runtimes][libc] Keep the libc target as "libc".
Siva Chandra Reddy via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 23:26:44 PST 2023
Author: Siva Chandra Reddy
Date: 2023-01-31T07:26:35Z
New Revision: afeb1c1601e81ab3a462e14eae55443087f03f02
URL: https://github.com/llvm/llvm-project/commit/afeb1c1601e81ab3a462e14eae55443087f03f02
DIFF: https://github.com/llvm/llvm-project/commit/afeb1c1601e81ab3a462e14eae55443087f03f02.diff
LOG: [runtimes][libc] Keep the libc target as "libc".
It currently renamed to "llvmlibc" under the runtimes/boostrap build.
This prevents us from making a full libc build.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D142919
Added:
Modified:
llvm/runtimes/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 694f346ee8e93..d84d26433a3d6 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -161,12 +161,6 @@ endif()
# 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 @@ foreach(entry ${runtimes})
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})
More information about the llvm-commits
mailing list