This is an archive of the discontinued LLVM Phabricator instance.

Detect Visual Studio automatically in Windows packaging script
ClosedPublic

Authored by pbo-linaro on Oct 13 2022, 6:24 AM.

Details

Summary

Instead of hardcoding several VS paths, use vswhere.exe (available from
VS 2017) to get latest version available.

Diff Detail

Event Timeline

pbo-linaro created this revision.Oct 13 2022, 6:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 6:24 AM
pbo-linaro requested review of this revision.Oct 13 2022, 6:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 6:24 AM
pbo-linaro added a reviewer: compnerd.
hans accepted this revision.Oct 14 2022, 7:15 AM

lgtm

llvm/utils/release/build_llvm_release.bat
90

"use" sounds like it's asking the user to do something. Maybe it should say "using" instead?

This revision is now accepted and ready to land.Oct 14 2022, 7:15 AM

Replace "use" by "using" for better clarity.

pbo-linaro marked an inline comment as done.Oct 14 2022, 7:29 AM
pbo-linaro added inline comments.
llvm/utils/release/build_llvm_release.bat
90

You're right. I just updated it.

thieta accepted this revision.Oct 20 2022, 4:51 AM

Ah this doesn't fit correctly now that I landed D135255 - can you rebase?

pbo-linaro marked an inline comment as done.Oct 20 2022, 5:17 AM

Yes, I'm doing it! Thanks

pbo-linaro updated this revision to Diff 469180.EditedOct 20 2022, 5:20 AM

Rebased change

This revision was landed with ongoing or failed builds.Oct 20 2022, 7:29 AM
This revision was automatically updated to reflect the committed changes.

Landed! Thanks for you work on this script!

Thanks for your comments and help on all this.

I'll now be able to upstream arm64 support, before coming back on the dependencies script patch.