Skip rustc version detection on macOS
This commit is contained in:
parent
6ce22733b9
commit
1b390f44cf
1 changed files with 18 additions and 13 deletions
|
@ -209,6 +209,11 @@ def default_build_triple(verbose):
|
||||||
# install, use their preference. This fixes most issues with Windows builds
|
# install, use their preference. This fixes most issues with Windows builds
|
||||||
# being detected as GNU instead of MSVC.
|
# being detected as GNU instead of MSVC.
|
||||||
default_encoding = sys.getdefaultencoding()
|
default_encoding = sys.getdefaultencoding()
|
||||||
|
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
print("not using rustc detection as it is unreliable on macOS")
|
||||||
|
print("falling back to auto-detect")
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
version = subprocess.check_output(["rustc", "--version", "--verbose"],
|
version = subprocess.check_output(["rustc", "--version", "--verbose"],
|
||||||
stderr=subprocess.DEVNULL)
|
stderr=subprocess.DEVNULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue