@@ -33,13 +33,15 @@ wheel/linux/arm64: pyroscope_ffi/clean
3333wheel/mac/amd64 :
3434 cd pyroscope_ffi/python && \
3535 pip install wheel && \
36- python setup.py bdist_wheel -p macosx-11_0_x86_64
36+ CARGO_BUILD_TARGET=x86_64-apple-darwin \
37+ python setup.py bdist_wheel -p macosx-11_0_x86_64
3738
3839.phony : wheel/mac/arm64
3940wheel/mac/arm64 :
4041 cd pyroscope_ffi/python && \
4142 pip install wheel && \
42- python setup.py bdist_wheel -p macosx-11_0_arm64
43+ CARGO_BUILD_TARGET=aarch64-apple-darwin \
44+ python setup.py bdist_wheel -p macosx-11_0_arm64
4345
4446
4547.phony : gem/linux/amd64
@@ -66,14 +68,14 @@ gem/linux/arm64: pyroscope_ffi/clean
6668gem/mac/amd64 : pyroscope_ffi/clean
6769 cd pyroscope_ffi/ruby && \
6870 bundle && \
69- rake rbspy_install && \
70- rake thread_id_install && \
71- rake x86_64_darwin:gem
71+ RUST_TARGET=x86_64-apple-darwin rake rbspy_install && \
72+ RUST_TARGET=x86_64-apple-darwin rake thread_id_install && \
73+ RUST_TARGET=x86_64-apple-darwin rake x86_64_darwin:gem
7274
7375.phony : gem/mac/arm64
7476gem/mac/arm64 : pyroscope_ffi/clean
7577 cd pyroscope_ffi/ruby && \
7678 bundle && \
77- rake rbspy_install && \
78- rake thread_id_install && \
79- rake arm64_darwin:gem
79+ RUST_TARGET=aarch64-apple-darwin rake rbspy_install && \
80+ RUST_TARGET=aarch64-apple-darwin rake thread_id_install && \
81+ RUST_TARGET=aarch64-apple-darwin rake arm64_darwin:gem
0 commit comments