Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWindows: Packaging DLLs fails when WindowsSdkDir isn't set #25360
Labels
Comments
bors-servo
added a commit
that referenced
this issue
Dec 23, 2019
Launch vcvarsall.bat for the recognized VS Installation Directory from python instead of making mach.bat try that on hardcoded paths. Move the Execution of vcvars (which sets up the environment for visual studio tools) from mach.bat to python, so that ./mach works under mozilla-build and that #25300 can be used. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25360 #25336 - [X] These changes do not require tests because changes to build infra
bors-servo
added a commit
that referenced
this issue
Jan 9, 2020
Launch vcvarsall.bat for the recognized VS Installation Directory from python instead of making mach.bat try that on hardcoded paths. Move the Execution of vcvars (which sets up the environment for visual studio tools) from mach.bat to python, so that ./mach works under mozilla-build and that #25300 can be used. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25360 #25336 - [X] These changes do not require tests because changes to build infra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is related to #25336: Without vcvars.bat
WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\isn't set for me.This is the case because locating my VS Path fails and thus vcvarsall.bat wasn't found. Also I'm not launching mach.bat at all but the unix version from Mozilla-Build Environment.
To me there are two solutions here:
I'll look into the second approach as that looks like the best (as in most stable and clean) solution to me, even though this specific issue would be easier to solve by looking at the registry.
Edit: Also maybe https://github.com/servo/servo/blob/master/python/servo/build_commands.py#L1003 should be at least a warning?
Edit2: editbin (build_commands.py:681) also requires vcvars, so the second option will be the way to go, without doubt.