Skip to content

Commit 23bb233

Browse files
committed
Add support for cross compiling from Apple Silicon to Intel
If you have an Apple Silicon machine but want to produce an Intel binary, using `--cross-compile-hosts macosx-x86_64` can be useful.
1 parent 9345e88 commit 23bb233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-script-impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ function false_true() {
10191019
CROSS_COMPILE_HOSTS=($CROSS_COMPILE_HOSTS)
10201020
for t in "${CROSS_COMPILE_HOSTS[@]}"; do
10211021
case ${t} in
1022-
macosx-arm64* | iphone* | appletv* | watch* | linux-armv6 | linux-armv7 | android-* )
1022+
macosx* | iphone* | appletv* | watch* | linux-armv6 | linux-armv7 | android-* )
10231023
;;
10241024
*)
10251025
echo "Unknown host to cross-compile for: ${t}"

0 commit comments

Comments
 (0)