Fix arm64 build. arm64 carl
authorCarl Hetherington <cth@carlh.net>
Thu, 24 Dec 2020 21:40:37 +0000 (22:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 24 Dec 2020 21:40:37 +0000 (22:40 +0100)
cscript

diff --git a/cscript b/cscript
index 51a10bbabc555db33f02852ae678fdac5343eb76..62e924d8632104883e9d4382e614cc1259ec6b35 100644 (file)
--- a/cscript
+++ b/cscript
@@ -30,6 +30,8 @@ def build(target, options):
         cmd += '--with-wasapi --with-ds --host=%s' % target.name
     elif target.platform == 'osx':
         cmd += '--with-core'
+        if target.arch == 'arm64':
+            cmd += ' --build=x86_64-apple-darwin --host=arm-apple-darwin'
 
     target.command(cmd)
     target.command('make -j%d' % target.parallel)