Browse Source

Fix osx-arm64 builds (#274)

jdh 3 years ago
parent
commit
0f54f4086a
2 changed files with 12 additions and 0 deletions
  1. 8 0
      makefile
  2. 4 0
      scripts/bin2c.lua

+ 8 - 0
makefile

@@ -96,6 +96,14 @@ osx-x64-release: .build/projects/gmake-osx-x64
 	make -C .build/projects/gmake-osx config=release
 osx-x64: osx-x64-debug osx-x64-release
 
+.build/projects/gmake-osx-arm64:
+	$(GENIE) --gcc=osx-arm64 gmake
+osx-arm64-debug: .build/projects/gmake-osx-arm64
+	make -C .build/projects/gmake-osx-arm64 config=debug
+osx-arm64-release: .build/projects/gmake-osx-arm64
+	make -C .build/projects/gmake-osx-arm64 config=release
+osx-arm64: osx-arm64-debug osx-arm64-release
+
 .build/projects/gmake-ios-arm:
 	$(GENIE) --gcc=ios-arm gmake
 ios-arm-debug: .build/projects/gmake-ios-arm

+ 4 - 0
scripts/bin2c.lua

@@ -20,6 +20,10 @@ project "bin2c"
 		links {
 			"pthread",
 		}
+	configuration { "osx-*" }
+		linkoptions {
+			"-framework Foundation"
+		}
 
 	configuration { "vs20* or mingw*" }
 		links {