async function setupAppleSilicon(cwd) {
  const { dependencies } = require(`${cwd}/package.json`)
  const KECCAK = 'keccak'

  // keccak ships no binaries for arm64 darwin
  if (KECCAK in dependencies) {
    console.debug(`Rebuilding ${KECCAK} for ${os.platform()}/${os.arch()}...`)
    const keccakPath = resolveDependencyFrom(cwd, KECCAK)
    spawnSync(COREPACK_BIN, [LAVAMOAT_PM, 'exec', 'node-gyp-build'], {
      cwd: keccakPath,
      stdio: 'inherit',
    })
  }
}
Some native packages may not ship binaries for Apple silicon, so we have to
rebuild them

@param {string} cwd