Skip to content

Commit 2d460f2

Browse files
committed
Attempt to fix test on Windows.
I'm assuming that because sys::path::append defaults to native path this fails. Since dsymutil is a Darwin tool, we can just hardcode the UNIX path separator.
1 parent 9b2246d commit 2d460f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/DWARFLinker/DWARFLinker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static SmallString<128> guessToolchainBaseDir(StringRef SysRoot) {
187187
return Result;
188188
Base = sys::path::parent_path(Base);
189189
Result = Base;
190-
sys::path::append(Result, "Toolchains");
190+
Result += "/Toolchains";
191191
return Result;
192192
}
193193

llvm/lib/DWARFLinkerParallel/DWARFLinkerCompileUnit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static SmallString<128> guessToolchainBaseDir(StringRef SysRoot) {
177177
return Result;
178178
Base = sys::path::parent_path(Base);
179179
Result = Base;
180-
sys::path::append(Result, "Toolchains");
180+
Result += "/Toolchains";
181181
return Result;
182182
}
183183

0 commit comments

Comments
 (0)