mirror of
https://github.com/servo/servo.git
synced 2025-07-02 04:53: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 locale
|
||||||
import os
|
import os
|
||||||
from os import path
|
from os import path
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
import contextlib
|
import contextlib
|
||||||
import subprocess
|
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 "rustup is at version %s.%s.%s, Servo requires 1.8.0 or more recent." % version
|
||||||
print "Try running 'rustup self update'."
|
print "Try running 'rustup self update'."
|
||||||
return 1
|
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:
|
else:
|
||||||
args[0] += BIN_SUFFIX
|
args[0] += BIN_SUFFIX
|
||||||
return call(args, **kwargs)
|
return call(args, **kwargs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue