Skip to content

Commit

Permalink
bootstrap: Don't workaround uname -m on Darwin
Browse files Browse the repository at this point in the history
This no longer manifests on any versions of OSX that I could find.
  • Loading branch information
richo committed Apr 18, 2017
1 parent 235fe83 commit 1dbc72b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,6 @@ def build_triple(self):
raise Exception(err)
sys.exit(err)

# Darwin's `uname -s` lies and always returns i386. We have to use
# sysctl instead.
if ostype == 'Darwin' and cputype == 'i686':
args = ['sysctl', 'hw.optional.x86_64']
sysctl = subprocess.check_output(args).decode(default_encoding)
if ': 1' in sysctl:
cputype = 'x86_64'

# The goal here is to come up with the same triple as LLVM would,
# at least for the subset of platforms we're willing to target.
if ostype == 'Linux':
Expand Down

0 comments on commit 1dbc72b

Please sign in to comment.