Fix hipcc for -M for hip-clang

This commit is contained in:
Yaxun Sam Liu committed 2018-07-23 09:26:42 -04:00
1 parent 4627aa0085
commit 6053c71323
1 file changed
+4
+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;