Workaround for libc++ include path for HIP-Clang (#1917)

HIP-Clang cuda_wrapper headers require clang include path before standard C++ include path.
However libc++ include path requires to be before clang include path.
To workaround this, we pass -isystem with the parent directory of clang include
path instead of the clang include path itself.
This commit is contained in:
Yaxun (Sam) Liu
2020-03-18 01:50:21 -04:00
committed by GitHub
parent b5e683a35d
commit 08d9759eba
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ if ($HIP_PLATFORM eq "clang") {
} else {
$HIPCXXFLAGS .= " -std=c++11";
}
$HIPCXXFLAGS .= " -isystem $HIP_CLANG_INCLUDE_PATH";
$HIPCXXFLAGS .= " -isystem $HIP_CLANG_INCLUDE_PATH/..";
$HIPLDFLAGS .= " -L$HIP_LIB_PATH";
if (not $isWindows) {
$HIPLDFLAGS .= " -Wl,--rpath-link=$HIP_LIB_PATH";