Skip to content

Commit 484634f

Browse files
[internal] Ensure Apple Silicon publishing is in Rust release mode (#12453)
See #12452. [ci skip-rust]
1 parent 5c5eeb4 commit 484634f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-support/bin/release_helper.py

+2
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ def publish_apple_silicon() -> None:
647647
banner("Building and publishing an Apple Silicon wheel")
648648
if os.environ.get("USE_PY39") != "true":
649649
die("Must set `USE_PY39=true` when building for Apple Silicon.")
650+
if os.environ.get("MODE") == "debug":
651+
die("Must build Rust in release mode, not debug. Please run `unset MODE`.")
650652
check_clean_git_branch()
651653
check_pgp()
652654
check_roles()

0 commit comments

Comments
 (0)