Skip to content

Commit 307e0d3

Browse files
nicebertronlieb
authored andcommitted
[OpenMP] Fixes save-temps multi-arch compilation with opaque-offload-linker
Fixes multi-arch save-temps compilation in opaque-offload-linker. Issue caused by files getting overwritten during unpacking. Adds TargetID to temp file name. Change-Id: Iebd34f9f6cf9375c08b3f775397b62b372fa8800
1 parent 671a68e commit 307e0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9416,7 +9416,7 @@ void LinkerWrapper::ConstructOpaqueJob(Compilation &C, const JobAction &JA,
94169416
if (II.isFilename()) {
94179417
OutputFile = llvm::sys::path::stem(II.getFilename()).str();
94189418
OutputFilePrefix = llvm::sys::path::stem(II.getBaseInput()).str() +
9419-
"-openmp-" + TheTriple.str();
9419+
"-openmp-" + TheTriple.str() + "-" + TargetID.str();
94209420

94219421
// generate command to unpackage each II.getFilename()
94229422
auto UnpackagedFileName =

0 commit comments

Comments
 (0)