Skip to content

Commit 1dbc72b

Browse files
committed
bootstrap: Don't workaround uname -m on Darwin
This no longer manifests on any versions of OSX that I could find.
1 parent 235fe83 commit 1dbc72b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/bootstrap/bootstrap.py

-8
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,6 @@ def build_triple(self):
404404
raise Exception(err)
405405
sys.exit(err)
406406

407-
# Darwin's `uname -s` lies and always returns i386. We have to use
408-
# sysctl instead.
409-
if ostype == 'Darwin' and cputype == 'i686':
410-
args = ['sysctl', 'hw.optional.x86_64']
411-
sysctl = subprocess.check_output(args).decode(default_encoding)
412-
if ': 1' in sysctl:
413-
cputype = 'x86_64'
414-
415407
# The goal here is to come up with the same triple as LLVM would,
416408
# at least for the subset of platforms we're willing to target.
417409
if ostype == 'Linux':

0 commit comments

Comments
 (0)