[libc-commits] [PATCH] D154277: [libc] Set include directories for str_to_float tests
Petr Hosek via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Jun 30 20:39:51 PDT 2023
phosek created this revision.
phosek added reviewers: michaelrj, sivachandra.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
phosek requested review of this revision.
These tests use libc headers and need to explicitly include them.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154277
Files:
libc/test/src/__support/CMakeLists.txt
Index: libc/test/src/__support/CMakeLists.txt
===================================================================
--- libc/test/src/__support/CMakeLists.txt
+++ libc/test/src/__support/CMakeLists.txt
@@ -105,6 +105,12 @@
str_to_float_comparison_test.cpp
)
+target_include_directories(
+ libc_str_to_float_comparison_test
+ PRIVATE
+ ${LIBC_INCLUDE_DIR}
+)
+
target_link_libraries(libc_str_to_float_comparison_test
PRIVATE
"${LIBC_TARGET}"
@@ -115,6 +121,12 @@
str_to_float_comparison_test.cpp
)
+target_include_directories(
+ libc_system_str_to_float_comparison_test
+ PRIVATE
+ ${LIBC_INCLUDE_DIR}
+)
+
set(float_test_file ${CMAKE_CURRENT_SOURCE_DIR}/str_to_float_comparison_data.txt)
add_custom_command(TARGET libc_str_to_float_comparison_test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154277.536503.patch
Type: text/x-patch
Size: 781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230701/d9826039/attachment.bin>
More information about the libc-commits
mailing list