Skip to content

Commit d5b4c4e

Browse files
add to the last commit, now AOT/double.cpp and AOT/reqd-sg-size.cpp also pass
1 parent 8f61479 commit d5b4c4e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,10 @@ runSYCLPostLinkTool(ArrayRef<StringRef> InputFiles, const ArgList &Args) {
730730
return TempFileOrErr.takeError();
731731
std::string OutputPathWithArch = TempFileOrErr->str();
732732
StringRef Arch = Args.getLastArgValue(OPT_arch_EQ);
733-
if (Triple.getSubArch() == llvm::Triple::SPIRSubArch_gen && Arch.data()) {
734-
std::string OutputPathWithArch = "intel_gpu_" + Arch.str() + "," + OutputPathWithArch;
735-
}
733+
if (Triple.getSubArch() == llvm::Triple::SPIRSubArch_gen && Arch.data())
734+
OutputPathWithArch = "intel_gpu_" + Arch.str() + "," + OutputPathWithArch;
735+
else if (Triple.getSubArch() == llvm::Triple::SPIRSubArch_x86_64)
736+
OutputPathWithArch = "spir64_x86_64," + OutputPathWithArch;
736737

737738
SmallVector<StringRef, 8> CmdArgs;
738739
CmdArgs.push_back(*SYCLPostLinkPath);

0 commit comments

Comments
 (0)