From 1dbc72b28e4ed4a530801f2689ed8ffb56f4fc21 Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Mon, 17 Apr 2017 19:30:18 -0700 Subject: [PATCH] bootstrap: Don't workaround uname -m on Darwin This no longer manifests on any versions of OSX that I could find. --- src/bootstrap/bootstrap.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 2e33b4511949d..3233a73b007cc 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -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':