From e92d32462478e80b9e171c016ad8bb9ba87395f8 Mon Sep 17 00:00:00 2001 From: Cnaik <33856364+cnnaik@users.noreply.github.com> Date: Tue, 16 Apr 2019 06:37:06 +0530 Subject: [PATCH] Adding support for s390x Architecture (#56) * Update build.js * Update system.js --- lib/build.js | 2 +- lib/system.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.js b/lib/build.js index 935ef78..5e6a6df 100644 --- a/lib/build.js +++ b/lib/build.js @@ -59,7 +59,7 @@ async function compileOnWindows (nodeVersion, targetArch) { async function compileOnUnix (nodeVersion, targetArch) { const args = []; const cpu = { x86: 'ia32', x64: 'x64', - armv6: 'arm', armv7: 'arm', arm64: 'arm64' }[targetArch]; + armv6: 'arm', armv7: 'arm', arm64: 'arm64', s390x: 's390x' }[targetArch]; args.push('--dest-cpu', cpu); // first of all v8_inspector introduces the use // of `prime_rehash_policy` symbol that requires diff --git a/lib/system.js b/lib/system.js index b302cea..e835e37 100644 --- a/lib/system.js +++ b/lib/system.js @@ -83,7 +83,7 @@ function getTargetArchs () { } function getKnownArchs () { - return [ 'x64', 'x86', 'armv6', 'armv7', 'arm64' ]; + return [ 'x64', 'x86', 'armv6', 'armv7', 'arm64', 's390x' ]; } export const hostAbi = getHostAbi();