Skip to content

Instantly share code, notes, and snippets.

@tekknolagi
Created November 19, 2022 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tekknolagi/5c12fb8258d2310b6f5a3346f69e1c6b to your computer and use it in GitHub Desktop.
Save tekknolagi/5c12fb8258d2310b6f5a3346f69e1c6b to your computer and use it in GitHub Desktop.
# 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