Skip to content

Commit 50b4b1a

Browse files
ronliebsearlmc1
authored andcommitted
[A+A] fix swdev-283654 548.exchange2_r and 648.exchange2_s fails building
Over constrained the previous fix for detecting when to invoke the closed compiler based on options. There is a SPEC CPU invocation 548 and 658 (same sources) that triggers based on -fveclib=AMDLIBM Change-Id: I688a11119366539d7ccf4843ef3a3103036c437d
1 parent d68a0f6 commit 50b4b1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/Driver/ToolChains/AmdOptArgs.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,12 @@ static bool checkForPropOpts(const ToolChain &TC, const Driver &D,
132132
Args.MakeArgString("-vector-library=LIBMVEC-X86"));
133133
break;
134134
}
135+
// fveclib supported prior to amd-opt, if its AMDLIBM then
136+
// we want to trigger closed compiler, otherwise not.
137+
if (Name == "AMDLIBM")
138+
ClosedToolChainNeeded = true;
135139
}
136140
}
137-
// fveclib supported prior to amd-opt, so not a trigger for closed.
138141
}
139142

140143
if (Arg *A = Args.getLastArg(options::OPT_fstruct_layout_EQ)) {

0 commit comments

Comments
 (0)