[libc][NFC] Use add_library instead of add_llvm_library for a few libraries.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 8 Jun 2021 23:04:11 +0000 (23:04 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Tue, 8 Jun 2021 23:15:24 +0000 (23:15 +0000)
These libraries do not depend on LLVM libraries anymore so they do not
have to be added using add_llvm_library.

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

index 8156464..c4600fd 100644 (file)
@@ -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
index 5ab4112..c0bffe3 100644 (file)
@@ -1,4 +1,4 @@
-add_llvm_library(
+add_library(
   LibcUnitTest
   Test.h
   LibcTest.cpp
index 248858c..eaa7ad0 100644 (file)
@@ -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