diff options
author | Julien Roy <julien@jroy.ca> | 2021-12-10 10:29:37 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2021-12-10 10:29:37 -0500 |
commit | 5ab02820562429ed0ac7df8be555bc66063ce130 (patch) | |
tree | 65c79aaf2a21329b8c404c193897856ed5e5bc59 /sys-devel/llvm-roc/files/llvm-roc-4.0.0-remove-isystem-usr-include.patch | |
parent | d97cecc0c33bbf233f295f304f7b31ce98861852 (diff) | |
download | MrRoy-Overlay-5ab02820562429ed0ac7df8be555bc66063ce130.tar.gz MrRoy-Overlay-5ab02820562429ed0ac7df8be555bc66063ce130.tar.bz2 MrRoy-Overlay-5ab02820562429ed0ac7df8be555bc66063ce130.zip |
Added patches for llvm-rom from gentoo tree
Diffstat (limited to 'sys-devel/llvm-roc/files/llvm-roc-4.0.0-remove-isystem-usr-include.patch')
-rw-r--r-- | sys-devel/llvm-roc/files/llvm-roc-4.0.0-remove-isystem-usr-include.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-devel/llvm-roc/files/llvm-roc-4.0.0-remove-isystem-usr-include.patch b/sys-devel/llvm-roc/files/llvm-roc-4.0.0-remove-isystem-usr-include.patch new file mode 100644 index 0000000..f14ec4a --- /dev/null +++ b/sys-devel/llvm-roc/files/llvm-roc-4.0.0-remove-isystem-usr-include.patch @@ -0,0 +1,29 @@ +Author: Wilfried (justxi) Holzke + +Adopted from https://github.com/justxi/rocm/blob/master/sys-devel/llvm-roc/files/llvm-roc-4.0.0-remove-isystem-usr-include.patch + +Index: llvm-project-rocm-4.0.0/clang/lib/Driver/ToolChains/AMDGPU.cpp +=================================================================== +--- llvm-project-rocm-4.0.0.orig/clang/lib/Driver/ToolChains/AMDGPU.cpp ++++ llvm-project-rocm-4.0.0/clang/lib/Driver/ToolChains/AMDGPU.cpp +@@ -326,11 +326,6 @@ void RocmInstallationDetector::AddHIPInc + // + // ROCm 3.5 does not fully support the wrapper headers. Therefore it needs + // a workaround. +- SmallString<128> P(D.ResourceDir); +- if (UsesRuntimeWrapper) +- llvm::sys::path::append(P, "include", "cuda_wrappers"); +- CC1Args.push_back("-internal-isystem"); +- CC1Args.push_back(DriverArgs.MakeArgString(P)); + } + + if (DriverArgs.hasArg(options::OPT_nogpuinc)) +@@ -341,8 +336,6 @@ void RocmInstallationDetector::AddHIPInc + return; + } + +- CC1Args.push_back("-internal-isystem"); +- CC1Args.push_back(DriverArgs.MakeArgString(getIncludePath())); + if (UsesRuntimeWrapper) + CC1Args.append({"-include", "__clang_hip_runtime_wrapper.h"}); + } |