Fix hipcc for -M for hip-clang

[ROCm/clr commit: 6053c71323]
This commit is contained in:
Yaxun Sam Liu
2018-07-20 15:16:27 -04:00
parent 192601f691
commit f45c9e9d61
+4
View File
@@ -635,6 +635,10 @@ if ($buildDeps and $HIP_PLATFORM eq 'nvcc') {
$HIPCXXFLAGS .= " -M -D__CUDACC__";
}
if ($buildDeps and $HIP_PLATFORM eq 'clang') {
$HIPCXXFLAGS .= " --cuda-host-only";
}
if ($setStdLib eq 0 and $HIP_PLATFORM eq 'hcc')
{
$HIPCXXFLAGS .= $HCC_WA_FLAGS;