[libc-commits] [PATCH] D139348: [libc] Fix wrappergen_test.cpp on runtimes build
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Sun Dec 11 14:43:24 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1dfb0cd703fe: [libc] Fix wrappergen_test.cpp on runtimes build (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139348/new/
https://reviews.llvm.org/D139348
Files:
libc/test/utils/tools/CMakeLists.txt
libc/test/utils/tools/WrapperGen/CMakeLists.txt
Index: libc/test/utils/tools/WrapperGen/CMakeLists.txt
===================================================================
--- libc/test/utils/tools/WrapperGen/CMakeLists.txt
+++ libc/test/utils/tools/WrapperGen/CMakeLists.txt
@@ -4,7 +4,7 @@
wrappergen_test.cpp
ARGS
--path=${LIBC_SOURCE_DIR}
- --tool=${CMAKE_BINARY_DIR}/bin/libc-wrappergen
+ --tool=${LLVM_BINARY_DIR}/bin/libc-wrappergen
--api=${LIBC_SOURCE_DIR}/test/utils/tools/WrapperGen/testapi.td
)
Index: libc/test/utils/tools/CMakeLists.txt
===================================================================
--- libc/test/utils/tools/CMakeLists.txt
+++ libc/test/utils/tools/CMakeLists.txt
@@ -33,4 +33,10 @@
target_link_libraries(${target_name} PRIVATE LLVMSupport)
endfunction()
+# Build the gtest library needed for unittests if we do not have it already.
+if (EXISTS ${LLVM_THIRD_PARTY_DIR}/unittest AND NOT TARGET llvm_gtest)
+ include_directories(${LLVM_LIBC_INCLUDE_DIRS})
+ add_subdirectory(${LLVM_THIRD_PARTY_DIR}/unittest third-party/unittest)
+endif()
+
add_subdirectory(WrapperGen)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139348.481953.patch
Type: text/x-patch
Size: 1094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221211/c5cdcc76/attachment.bin>
More information about the libc-commits
mailing list