mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
rustup.rs: Use MSVC rather than GNU toolchains on Windows
This commit is contained in:
parent
ded0bc9365
commit
0681e682e9
1 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,7 @@ import itertools
|
|||
import locale
|
||||
import os
|
||||
from os import path
|
||||
import platform
|
||||
import re
|
||||
import contextlib
|
||||
import subprocess
|
||||
|
@ -337,7 +338,10 @@ class CommandBase(object):
|
|||
print "rustup is at version %s.%s.%s, Servo requires 1.8.0 or more recent." % version
|
||||
print "Try running 'rustup self update'."
|
||||
return 1
|
||||
args = ["rustup" + BIN_SUFFIX, "run", "--install", self.toolchain()] + args
|
||||
toolchain = self.toolchain()
|
||||
if platform.system() == "Windows":
|
||||
toolchain += "-x86_64-pc-windows-msvc"
|
||||
args = ["rustup" + BIN_SUFFIX, "run", "--install", toolchain] + args
|
||||
else:
|
||||
args[0] += BIN_SUFFIX
|
||||
return call(args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue