summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/Clang.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-05-07 21:08:15 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-05-07 21:08:15 +0000
commitfe608c938cae0bc3422f2337774c01a2910f406c (patch)
tree0b651b2499d4abe2ff5e08e1ef6f2004c928ad6f /clang/lib/Driver/ToolChains/Clang.cpp
parentb9c57683026e51f5b0a1f779c95895b16e8de04c (diff)
downloadbcm5719-llvm-fe608c938cae0bc3422f2337774c01a2910f406c.tar.gz
bcm5719-llvm-fe608c938cae0bc3422f2337774c01a2910f406c.zip
Revert "[OpenMP][Clang] Support for target math functions"
This commit appears to be breaking stage-2 builds on GreenDragon. The OpenMP wrappers for cmath and math.h are copied into the root of the resource directory and cause a cyclic dependency in module 'Darwin': Darwin -> std -> Darwin. This blows up when CMake is testing for modules support and breaks all stage 2 module builds, including the ThinLTO bot and all LLDB bots. CMake Error at cmake/modules/HandleLLVMOptions.cmake:497 (message): LLVM_ENABLE_MODULES is not supported by this compiler llvm-svn: 360192
Diffstat (limited to 'clang/lib/Driver/ToolChains/Clang.cpp')
-rw-r--r--clang/lib/Driver/ToolChains/Clang.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 91cc30520f7..cbaf5cbf926 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -1151,21 +1151,6 @@ void Clang::AddPreprocessingOptions(Compilation &C, const JobAction &JA,
if (JA.isOffloading(Action::OFK_Cuda))
getToolChain().AddCudaIncludeArgs(Args, CmdArgs);
- // If we are offloading to a target via OpenMP we need to include the
- // openmp_wrappers folder which contains alternative system headers.
- if (JA.isDeviceOffloading(Action::OFK_OpenMP) &&
- getToolChain().getTriple().isNVPTX()){
- if (!Args.hasArg(options::OPT_nobuiltininc)) {
- // Add openmp_wrappers/* to our system include path. This lets us wrap
- // standard library headers.
- SmallString<128> P(D.ResourceDir);
- llvm::sys::path::append(P, "include");
- llvm::sys::path::append(P, "openmp_wrappers");
- CmdArgs.push_back("-internal-isystem");
- CmdArgs.push_back(Args.MakeArgString(P));
- }
- }
-
// Add -i* options, and automatically translate to
// -include-pch/-include-pth for transparent PCH support. It's
// wonky, but we include looking for .gch so we can support seamless
OpenPOWER on IntegriCloud