From 3a71ba50e683102739e850de30f4c940030bf8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Wed, 28 Apr 2021 09:59:18 +0200 Subject: [PATCH] worker: M1 compilable --- worker/common.gypi | 3 +++ worker/scripts/configure.py | 1 + 2 files changed, 4 insertions(+) diff --git a/worker/common.gypi b/worker/common.gypi index 013bea721a..265b6125ef 100644 --- a/worker/common.gypi +++ b/worker/common.gypi @@ -66,6 +66,9 @@ [ 'target_arch == "x64"', { 'xcode_settings': { 'ARCHS': [ 'x86_64' ] } }], + [ 'target_arch == "arm64"', { + 'xcode_settings': { 'ARCHS': [ 'arm64' ] } + }], [ 'OS in "linux freebsd openbsd solaris"', { 'target_conditions': [ diff --git a/worker/scripts/configure.py b/worker/scripts/configure.py index 898931a403..47fbd3cac7 100755 --- a/worker/scripts/configure.py +++ b/worker/scripts/configure.py @@ -28,6 +28,7 @@ def host_arch(): if machine == 'i386': return 'ia32' if machine == 'x86_64': return 'x64' if machine == 'aarch64': return 'arm64' + if machine == 'arm64': return 'arm64' if machine == 'mips64': return 'mips64el' if machine.startswith('arm'): return 'arm' if machine.startswith('mips'): return 'mips'