Created
November 19, 2022 19:40
-
-
Save tekknolagi/5c12fb8258d2310b6f5a3346f69e1c6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If on an M1, M2, or other new Apple Silicon, you have to both compile and run | |
# using the "arch" tool so that both the final binary and the JIT-compiled code | |
# can run in x86_64 mode. | |
UNAME_S:=$(shell uname -s) | |
UNAME_M:=$(shell uname -m) | |
ifeq ($(UNAME_S),Darwin) | |
ifeq ($(UNAME_M),arm64) | |
COMPILEPREFIX=arch -x86_64 | |
endif | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment