Skip to content

Commit

Permalink
Enable only feature cross-lang-fat-lto on MacOS
Browse files Browse the repository at this point in the history
while we cannot enable cross-lang-fat-lto on MacOS due to linker error
described [here], it turns out that enabling the feature
`cross-lang-fat-lto` does not break the build.

[here]: #806 (comment)

Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Mar 10, 2023
1 parent cfbdf11 commit 9752b7b
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 @@ -66,7 +66,7 @@ support-pkg-config := if target == target-host {

cargo-features := trim_end_match(if override-features != "" { override-features
} else if (cargo-profile / ci-or-no) == "dev/ci" { "rustls,fancy-with-backtrace,zstd-thin,log_release_max_level_debug" + (if support-pkg-config != "" { ",pkg-config" } else { "" }) + extra-features
} else if (cargo-profile / ci-or-no) == "release/ci" { "static,rustls,trust-dns,fancy-no-backtrace,zstd-thin,log_release_max_level_debug" + (if target-os != "macos" { ",cross-lang-fat-lto" } else { "" }) + extra-features
} else if (cargo-profile / ci-or-no) == "release/ci" { "static,rustls,trust-dns,fancy-no-backtrace,zstd-thin,log_release_max_level_debug,cross-lang-fat-lto" + extra-features
} else { extra-features
}, ",")

Expand Down

0 comments on commit 9752b7b

Please sign in to comment.