Skip to content

Commit

Permalink
Only enable linker-plugin-lto for linux
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Feb 19, 2023
1 parent 6426265 commit da0d885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ rustc-icf := if for-release != "" { " -C link-arg=-Wl,--icf=safe" } else { "" }
# Also disable this on windows since it uses msvc.
linker-plugin-lto := if for-release == "" {
""
} else if target-os != "windows" {
} else if target-os == "linux" {
"-C linker-plugin-lto "
} else {
""
Expand Down

0 comments on commit da0d885

Please sign in to comment.