From 1f896b829b9907ebf36b73bfff5362ab2c719445 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Mon, 1 Mar 2021 03:46:19 -0800 Subject: [PATCH] build: remove node-gyp arm64 tricks (#27916) --- script/spec-runner.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/script/spec-runner.js b/script/spec-runner.js index ba1f4feaee00..51af5afdba2f 100755 --- a/script/spec-runner.js +++ b/script/spec-runner.js @@ -237,19 +237,6 @@ async function installSpecModules (dir) { console.log(`${fail} Failed to yarn install in '${dir}'`); process.exit(1); } - - // TODO(MarshallOfSound): Remove once node-gyp supports arm64 - if (process.platform === 'darwin' && process.env.npm_config_arch === 'arm64') { - for (const nodeModule of fs.readdirSync(path.resolve(dir, 'node_modules'))) { - if (fs.existsSync(path.resolve(dir, 'node_modules', nodeModule, 'binding.gyp'))) { - childProcess.spawnSync(NPX_CMD, ['https://github.com/MarshallOfSound/node-gyp/archive/apple-silicon.tar.gz', 'clean', 'configure', 'build', '--arch=arm64'], { - env, - cwd: path.resolve(dir, 'node_modules', nodeModule), - stdio: 'inherit' - }); - } - } - } } function getSpecHash () {