(d8)
return arch
Infer the V8 architecture from the build configuration next to the
  executable.
Infer the V8 architecture from the build configuration next to the
  executable.
Infer the V8 architecture from the build configuration next to the executable .
def infer_arch(d8):
  """Infer the V8 architecture from the build configuration next to the
  executable.
  """
  with open(os.path.join(os.path.dirname(d8), 'v8_build_config.json')) as f:
    arch = json.load(f)['v8_current_cpu']
  arch = 'ia32' if arch == 'x86' else arch
  assert arch in SUPPORTED_ARCHS
  return arch
def infer_arch ( d8 ) : with open ( os . path . join ( os . path . dirname ( d8 ) , 'v8_build_config.json' ) ) as f : arch = json . load ( f ) [ 'v8_current_cpu' ] arch = 'ia32' if arch == 'x86' else arch assert arch in SUPPORTED_ARCHS return arch