Rollup merge of #41356 - richo:darwin-no-cputype-hack, r=alexcrichton
bootstrap: Don't workaround uname -m on Darwin This no longer manifests on any versions of OSX that I could find. How far back is Rust officially supported? I can try to get copies to test when this behaviour changed. (Fun fact, at a minimum the comment already lies, since the flag is `-m` :))
This commit is contained in:
commit
ddf4781c1b
@ -404,14 +404,6 @@ class RustBuild(object):
|
||||
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':
|
||||
|
Loading…
Reference in New Issue
Block a user