Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Packaging DLLs fails when WindowsSdkDir isn't set #25360

Closed
MeFisto94 opened this issue Dec 22, 2019 · 0 comments
Closed

Windows: Packaging DLLs fails when WindowsSdkDir isn't set #25360

MeFisto94 opened this issue Dec 22, 2019 · 0 comments
Labels

Comments

@MeFisto94
Copy link
Contributor

@MeFisto94 MeFisto94 commented Dec 22, 2019

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.

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
@CYBAI CYBAI added the P-windows label Dec 23, 2019
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
Projects
None yet
2 participants
You can’t perform that action at this time.