Fix hipcc for -M for hip-clang

[ROCm/hip commit: c59aa75f25]
This commit is contained in:
Yaxun Sam Liu
2018-07-20 15:16:27 -04:00
parent c1c58da0b0
commit 0a8bd06aae
+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;