mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #26206 - Manishearth:vcvars, r=jdm
Add VCINSTALLDIR to the 'do not run within vcvarsall' check Servo is able to run with VSINSTALLDIR set, but not VCINSTALLDIR, since cc-rs takes it to mean vcvarsall has been called. As far as I can tell servo is able to build with a custom VS install without needing help finding it (aside from perhaps VSINSTALLDIR), since many tools use a non-env var method of finding VS. r? @jdm
This commit is contained in:
commit
3ca86eeba5
1 changed files with 3 additions and 2 deletions
|
@ -256,10 +256,11 @@ class MachCommands(CommandBase):
|
|||
vs_dirs = self.vs_dirs()
|
||||
|
||||
if host != target_triple and 'windows' in target_triple:
|
||||
if os.environ.get('VisualStudioVersion'):
|
||||
if os.environ.get('VisualStudioVersion') or os.environ.get('VCINSTALLDIR'):
|
||||
print("Can't cross-compile for Windows inside of a Visual Studio shell.\n"
|
||||
"Please run `python mach build [arguments]` to bypass automatic "
|
||||
"Visual Studio shell.")
|
||||
"Visual Studio shell, and make sure the VisualStudioVersion and "
|
||||
"VCINSTALLDIR environment variables are not set.")
|
||||
sys.exit(1)
|
||||
vcinstalldir = vs_dirs['vcdir']
|
||||
if not os.path.exists(vcinstalldir):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue