[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)
Michael Kruse via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 08:07:36 PST 2025
================
@@ -599,9 +599,11 @@ Expected<StringRef> writeOffloadFile(const OffloadFile &File) {
StringRef Prefix =
sys::path::stem(Binary.getMemoryBufferRef().getBufferIdentifier());
-
- auto TempFileOrErr = createOutputFile(
- Prefix + "-" + Binary.getTriple() + "-" + Binary.getArch(), "o");
+ SmallString<128> Filename;
+ (Prefix + "-" + Binary.getTriple() + "-" + Binary.getArch())
+ .toNullTerminatedStringRef(Filename);
----------------
Meinersbur wrote:
```suggestion
SmallString<128> Filename{Prefix, "-", Binary.getTriple(), "-", Binary.getArch()};
```
should work as well
https://github.com/llvm/llvm-project/pull/130285
More information about the cfe-commits
mailing list