summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2022-05-06 22:19:54 -0700
committerPetr Hosek <phosek@google.com>2022-05-06 22:20:06 -0700
commit83e07916ffc55dd85989726f991331c8ad1439d0 (patch)
tree66886169d4af7be6dbcc0478e67227bfa8fd7add /runtimes
parent67b0b02ec9f2bbc57bf8f0550828d97f460ac11f (diff)
downloadllvm-83e07916ffc55dd85989726f991331c8ad1439d0.tar.gz
Revert "[CMake][libcxx] Use target_include_directories for libc++ headers"
This reverts commit 203455c85ad03325ce2d77f067f6ac953f2a32ce since it breaks the OpenMP builders for AMDGPU.
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/CMakeLists.txt11
1 files changed, 0 insertions, 11 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index 2d7f853a9ac2..1783e0114291 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -92,17 +92,6 @@ include(LLVMCheckCompilerLinkerFlag)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
-# CMake omits default compiler include paths, but in runtimes build, we use
-# -nostdinc and -nostdinc++ and control include paths manually so this behavior
-# is undesirable. Resetting CMAKE_{LANG}_IMPLICIT_INCLUDE_DIRECTORIES disables
-# this behavior. See https://gitlab.kitware.com/cmake/cmake/-/issues/19227 for
-# further details no this topic.
-#
-# TODO: We may want to consider filtering out only the paths that are within
-# the toolchain installation and leaving the system paths.
-set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "")
-set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "")
-set(CMAKE_ASM_IMPLICIT_INCLUDE_DIRECTORIES "")
check_c_compiler_flag("" LLVM_RUNTIMES_LINKING_WORKS)
if (NOT LLVM_RUNTIMES_LINKING_WORKS)