Skip to content

Commit

Permalink
.github(cross-compile): try enabling -flto on macOS
Browse files Browse the repository at this point in the history
I think this won't work.
  • Loading branch information
ee7 committed Aug 16, 2023
1 parent deb3b79 commit d0e67f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/bin/cross-compile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ cross_compile() {
if [[ -d "${dir}" ]]; then
build_options+=("--passC:-F${dir}")
build_options+=("--passL:-F${dir}")
# Enable FLTO
build_options+=("--passC:-flto")
build_options+=("--passL:-flto")
# Strip
build_options+=("--passL:-s")
fi
Expand Down

0 comments on commit d0e67f6

Please sign in to comment.