From c59aa75f256ab208501e35884c5c6b5037ed1dd7 Mon Sep 17 00:00:00 2001 From: Yaxun Sam Liu Date: Fri, 20 Jul 2018 15:16:27 -0400 Subject: [PATCH] Fix hipcc for -M for hip-clang --- bin/hipcc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/hipcc b/bin/hipcc index 5a675eb15e..1fc1e56638 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -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;