mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
Extend -platformlib to Posix targets
This commit is contained in:
parent
ccaccb8edd
commit
18ed3efe4d
5 changed files with 76 additions and 74 deletions
|
@ -556,7 +556,14 @@ void ArgsBuilder::build(llvm::StringRef outputPath,
|
|||
}
|
||||
}
|
||||
|
||||
addDefaultPlatformLibs();
|
||||
const auto explicitPlatformLibs = getExplicitPlatformLibs();
|
||||
if (explicitPlatformLibs.hasValue()) {
|
||||
for (const auto &name : explicitPlatformLibs.getValue()) {
|
||||
args.push_back("-l" + name);
|
||||
}
|
||||
} else {
|
||||
addDefaultPlatformLibs();
|
||||
}
|
||||
|
||||
addTargetFlags();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue