Skip to content

Commit

Permalink
[CONFIG] disable LTO on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdae committed Mar 28, 2024
1 parent 19a1920 commit b55e9f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions toolchain/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def _arm_gnu_toolchain(
for host, exec_compatible_with in hosts[toolchain_prefix].items():
fix_linkopts = []

# macOS on apple silicon rejects the relative path LTO plugin
if version == "13.2.1" and host == "darwin_arm64":
# macOS on apple rejects the relative path LTO plugin
if version == "13.2.1" and "darwin" in host:
fix_linkopts.append("-fno-lto")

cc_arm_gnu_toolchain_config(
Expand Down

0 comments on commit b55e9f2

Please sign in to comment.