mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
Azure CI: Build LDC itself with full LTO, on Linux and Mac too (#3236)
This commit is contained in:
parent
82f6d4fb85
commit
ec1c37a5a4
3 changed files with 20 additions and 7 deletions
|
@ -169,8 +169,7 @@ std::string getLTOdylibPath() {
|
|||
void ArgsBuilder::addDarwinLTOFlags() {
|
||||
std::string dylibPath = getLTOdylibPath();
|
||||
if (!dylibPath.empty()) {
|
||||
args.push_back("-lto_library");
|
||||
args.push_back(std::move(dylibPath));
|
||||
addLdFlag("-lto_library", dylibPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue