Skip to content

Commit

Permalink
Attempt to fix test on Windows.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adrian-prantl committed Nov 4, 2023
1 parent 9b2246d commit 2d460f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/DWARFLinker/DWARFLinker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static SmallString<128> guessToolchainBaseDir(StringRef SysRoot) {
return Result;
Base = sys::path::parent_path(Base);
Result = Base;
sys::path::append(Result, "Toolchains");
Result += "/Toolchains";
return Result;
}

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/DWARFLinkerParallel/DWARFLinkerCompileUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static SmallString<128> guessToolchainBaseDir(StringRef SysRoot) {
return Result;
Base = sys::path::parent_path(Base);
Result = Base;
sys::path::append(Result, "Toolchains");
Result += "/Toolchains";
return Result;
}

Expand Down

0 comments on commit 2d460f2

Please sign in to comment.