Azure CI: Build LDC itself with full LTO, on Linux and Mac too (#3236)

This commit is contained in:
Martin Kinkelin 2020-01-15 00:21:35 +01:00 committed by GitHub
parent 82f6d4fb85
commit ec1c37a5a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 7 deletions

View file

@ -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);
}
}