aboutsummaryrefslogtreecommitdiff
path: root/libc/benchmarks
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-02-27 17:45:15 -0600
committerGitHub <noreply@github.com>2024-02-27 17:45:15 -0600
commit04e8653f189bf3d65680c7fb3b3033ad82903ee9 (patch)
tree9f327b345599e076f7726e8af79bd31fc06b7f30 /libc/benchmarks
parent0e84e2748b40eb757a5c52a983c87dd4f25a1587 (diff)
downloadllvm-04e8653f189bf3d65680c7fb3b3033ad82903ee9.zip
llvm-04e8653f189bf3d65680c7fb3b3033ad82903ee9.tar.gz
llvm-04e8653f189bf3d65680c7fb3b3033ad82903ee9.tar.bz2
[libc] Add "include/" to the LLVM include directories (#83199)
Summary: Recent changes added an include path in the float128 type that used the internal `libc` path to find the macro. This doesn't work once it's installed because we need to search from the root of the install dir. This patch adds "include/" to the include path so that our inclusion of installed headers always match the internal use.
Diffstat (limited to 'libc/benchmarks')
-rw-r--r--libc/benchmarks/automemcpy/lib/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/benchmarks/automemcpy/lib/CMakeLists.txt b/libc/benchmarks/automemcpy/lib/CMakeLists.txt
index 0c7d399..bb6a563 100644
--- a/libc/benchmarks/automemcpy/lib/CMakeLists.txt
+++ b/libc/benchmarks/automemcpy/lib/CMakeLists.txt
@@ -18,7 +18,8 @@ add_custom_command(
add_library(automemcpy_implementations "${Implementations}")
target_link_libraries(automemcpy_implementations PUBLIC LLVMSupport libc-memory-benchmark)
-target_include_directories(automemcpy_implementations PRIVATE ${LIBC_SOURCE_DIR} ${LIBC_AUTOMEMCPY_INCLUDE_DIR})
+target_include_directories(automemcpy_implementations PRIVATE
+ ${LIBC_SOURCE_DIR} ${LIBC_SOURCE_DIR}/include ${LIBC_AUTOMEMCPY_INCLUDE_DIR})
target_compile_options(automemcpy_implementations PRIVATE ${LIBC_COMPILE_OPTIONS_NATIVE} "SHELL:-mllvm -combiner-global-alias-analysis" -fno-builtin)
llvm_update_compile_flags(automemcpy_implementations)