Let hipcc not pass -mllvm option to HIP-Clang on Windows (#1924)

Currently there is a clang bug on Windows causing duplicate -mllvm options in clang -cc1.

Tempoarily disable -mllvm options for HIP-Clang on Windows until the bug is fixed.

Change-Id: I3a4393ba7745989398dc6c6001722837dad18704

[ROCm/clr commit: 6b1956d139]
このコミットが含まれているのは:
Yaxun (Sam) Liu authored and GitHub committed 2020-03-17 14:00:20 +05:30
1 親 91546b6c9f
コミット 586dc598b6
1ファイル変更
+3 -1
+3 -1
ファイルの表示
@@ -711,7 +711,9 @@ if ($HIP_PLATFORM eq "clang") {
$HIPCXXFLAGS .= " -O3";
$HIPLDFLAGS .= " -O3";
}
if ($optArg ne "-O0") {
# Do not pass -mllvm on Windows since there is a clang bug causing duplicate -mllvm options in clang -cc1 on Windows.
# ToDo : remove restriction for Windows after clang bug is fixed.
if ($optArg ne "-O0" and not $isWindows) {
$HIPCXXFLAGS .= " -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false";
if ($needLDFLAGS and not $needCXXFLAGS) {
$HIPLDFLAGS .= " -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false";