Skip to content

Commit 2aaa25f

Browse files
committed
fix: add missing -flto for ldFlags
1 parent 5f58929 commit 2aaa25f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Builder/Project.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Project::Project(
108108
);
109109
if (profile.lto) {
110110
compilerOpts.cFlags.others.emplace_back("-flto");
111+
compilerOpts.ldFlags.others.emplace_back("-flto");
111112
}
112113
for (const std::string& flag : profile.cxxflags) {
113114
compilerOpts.cFlags.others.emplace_back(flag);

0 commit comments

Comments
 (0)