Skip to content

Commit

Permalink
Use the correct -arch flag for M1.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Dec 5, 2021
1 parent 9a4de72 commit d3a8231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS=-arch x86_64 -arch arm64e
#CFLAGS=-arch x86_64 -arch arm64

macher: append_data.o macher.h macher.c
gcc ${CFLAGS} -o macher append_data.o macher.c
Expand Down
2 changes: 1 addition & 1 deletion make_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
get_command = re.compile('#define\s(LC_[A-Z_]*).*(0x[0-9a-fA-F]*)')
get_filetype = re.compile('#define\s(MH_[A-Z_]*).*(0x[0-9a-fA-F]*)')
sdk = '/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk'
sdk = '/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk'
print('char* load_command_names[] = {')
count = 0
with open(os.path.join(sdk, 'usr', 'include', 'mach-o', 'loader.h')) as input_file:
Expand Down

0 comments on commit d3a8231

Please sign in to comment.