git.fiddlerwoaroof.com
Browse code

feat: add arm64 to makefile

Edward authored on 14/03/2021 05:40:56
Showing 2 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 CCL=ccl
2 2
 
3 3
 dylib: nsrect-expose.m
4
-	clang -shared -framework Cocoa nsrect-expose.m -o libnsrect-expose.dylib
4
+	clang -arch x86_64 -arch arm64 -shared -framework Cocoa nsrect-expose.m -o libnsrect-expose.dylib
5 5
 
6 6
 demo-app: dylib
7 7
 	$(CCL) --load ~/quicklisp/setup.lisp \
... ...
@@ -1,7 +1,8 @@
1 1
 CCL=ccl
2 2
 
3 3
 dylib: nsrect-expose.m
4
-	clang -shared \
4
+	clang -arch x86_64 -arch arm64 \
5
+	      -shared \
5 6
 			-framework Cocoa \
6 7
 			nsrect-expose.m \
7 8
 			-o libnsrect-expose.dylib