aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2023-06-29 06:53:02 +0000
committerPetr Hosek <phosek@google.com>2023-07-07 20:33:54 +0000
commit147c0640a3faae5e382c0d319c15112c92e06098 (patch)
treec68042a245561558b906df790b8e31e88c0c773e /libc
parentbab6902eba55026a829d232629f99ac276936ef0 (diff)
downloadllvm-147c0640a3faae5e382c0d319c15112c92e06098.zip
llvm-147c0640a3faae5e382c0d319c15112c92e06098.tar.gz
llvm-147c0640a3faae5e382c0d319c15112c92e06098.tar.bz2
[libc] Set include directories for the str_to_float test
This test uses libc headers and need to explicitly include them. Differential Revision: https://reviews.llvm.org/D154277
Diffstat (limited to 'libc')
-rw-r--r--libc/test/src/__support/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/test/src/__support/CMakeLists.txt b/libc/test/src/__support/CMakeLists.txt
index 5eabf93..c5de8f5 100644
--- a/libc/test/src/__support/CMakeLists.txt
+++ b/libc/test/src/__support/CMakeLists.txt
@@ -105,6 +105,12 @@ add_executable(
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}"