divonlan
(Divon Lan)
January 22, 2024, 6:51am
1
I would like my package to work natively on Apple Silicon. I plan to initiate the migration as documented here: Knowledge Base — conda-forge 2024.01.13 documentation .
However, I need to build for Apple Silicon a bit differently than for osx64 - can anyone please advise how one can tell that this is Apple Silicon build in the Makefile (when building in conda-forge)? E.g. is there any environment variable?
Many thanks!
xhochy
(Uwe Korn)
January 22, 2024, 7:50am
2
What build system (cmake, poetry, meson, …) is the package using you are building?
divonlan
(Divon Lan)
January 22, 2024, 8:13am
3
@xhochy just a plain Makefile
divonlan
(Divon Lan)
January 24, 2024, 11:38am
4
Any ideas @xhochy ? Very much appreciated!
xhochy
(Uwe Korn)
January 25, 2024, 9:53am
5
Yes, you could check the target_architecture
environment variable.
divonlan
(Divon Lan)
January 25, 2024, 10:12am
6
Thanks! What would be the value of target_architecture for Apple Silicon? Or more generally, where can see the list of possible values? @xhochy
xhochy
(Uwe Korn)
January 25, 2024, 10:29am
7
The value of the architectures used as part of conda, i.e. for Apple Silicon it would be osx-arm64
.