Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion clang/lib/Driver/ToolChains/OpenBSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "clang/Driver/SanitizerArgs.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/VirtualFileSystem.h"

using namespace clang::driver;
using namespace clang::driver::tools;
Expand Down Expand Up @@ -309,7 +310,9 @@ std::string OpenBSD::getCompilerRT(const ArgList &Args,
std::string CRTBasename =
getCompilerRTBasename(Args, Component, Type, /*AddArch=*/false);
llvm::sys::path::append(P, "lib", CRTBasename);
return std::string(P.str());
if (getVFS().exists(P))
return std::string(P.str());
return ToolChain::getCompilerRT(Args, Component, Type);
}
}

Expand Down