[libc-commits] [libc] f4c8fd1 - [libc][NFC] Use add_library instead of add_llvm_library for a few libraries.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Tue Jun 8 16:15:44 PDT 2021


Author: Siva Chandra Reddy
Date: 2021-06-08T23:15:24Z
New Revision: f4c8fd12d58ed93c447081fd8f499fb503da12ff

URL: https://github.com/llvm/llvm-project/commit/f4c8fd12d58ed93c447081fd8f499fb503da12ff
DIFF: https://github.com/llvm/llvm-project/commit/f4c8fd12d58ed93c447081fd8f499fb503da12ff.diff

LOG: [libc][NFC] Use add_library instead of add_llvm_library for a few libraries.

These libraries do not depend on LLVM libraries anymore so they do not
have to be added using add_llvm_library.

Added: 
    

Modified: 
    libc/utils/FPUtil/CMakeLists.txt
    libc/utils/UnitTest/CMakeLists.txt
    libc/utils/testutils/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/utils/FPUtil/CMakeLists.txt b/libc/utils/FPUtil/CMakeLists.txt
index 8156464a04398..c4600fd7f2bf8 100644
--- a/libc/utils/FPUtil/CMakeLists.txt
+++ b/libc/utils/FPUtil/CMakeLists.txt
@@ -35,13 +35,13 @@ add_header_library(
     libc.utils.CPP.standalone_cpp
 )
 
-add_llvm_library(
+add_library(
   LibcFPTestHelpers
     TestHelpers.cpp
     TestHelpers.h
 )
 target_include_directories(LibcFPTestHelpers PUBLIC ${LIBC_SOURCE_DIR})
-target_link_libraries(LibcFPTestHelpers LibcUnitTest LLVMSupport)
+target_link_libraries(LibcFPTestHelpers LibcUnitTest)
 add_dependencies(
   LibcFPTestHelpers
   LibcUnitTest

diff  --git a/libc/utils/UnitTest/CMakeLists.txt b/libc/utils/UnitTest/CMakeLists.txt
index 5ab41125017c6..c0bffe34cb09a 100644
--- a/libc/utils/UnitTest/CMakeLists.txt
+++ b/libc/utils/UnitTest/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_llvm_library(
+add_library(
   LibcUnitTest
   Test.h
   LibcTest.cpp

diff  --git a/libc/utils/testutils/CMakeLists.txt b/libc/utils/testutils/CMakeLists.txt
index 248858c311d1c..eaa7ad0d69d26 100644
--- a/libc/utils/testutils/CMakeLists.txt
+++ b/libc/utils/testutils/CMakeLists.txt
@@ -3,7 +3,7 @@ if(CMAKE_HOST_UNIX)
   set(FDReaderFile FDReaderUnix.cpp)
 endif()
 
-add_llvm_library(
+add_library(
   libc_test_utils
   RandUtils.cpp
   RandUtils.h


        


More information about the libc-commits mailing list