mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
MSVC: Use absolute path to ldc_rt.builtins.lib
Otherwise linking only works if the directory is specified for the linker, which may not be the case when disabling the config file via `-conf=`.
This commit is contained in:
parent
24c2d3e867
commit
b032cfdf65
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@ void addMscrtLibs(std::vector<std::string> &args,
|
||||||
}
|
}
|
||||||
|
|
||||||
void addLibIfFound(std::vector<std::string> &args, const llvm::Twine &name) {
|
void addLibIfFound(std::vector<std::string> &args, const llvm::Twine &name) {
|
||||||
if (llvm::sys::fs::exists(exe_path::prependLibDir(name)))
|
std::string candidate = exe_path::prependLibDir(name);
|
||||||
args.push_back(name.str());
|
if (llvm::sys::fs::exists(candidate))
|
||||||
|
args.push_back(std::move(candidate));
|
||||||
}
|
}
|
||||||
|
|
||||||
void addSanitizerLibs(std::vector<std::string> &args) {
|
void addSanitizerLibs(std::vector<std::string> &args) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue