This is an archive of the discontinued LLVM Phabricator instance.

[Windows build] Use "DIA SDK" in sysroot
ClosedPublic

Authored by thakis on Sep 13 2021, 11:14 AM.

Details

Summary

This updates llvm/utils/sysroot.py to include the "DIA SDK" folder in the sysroot.

It also updates the build to look for the DIA SDK there if a sysroot is set.

This requires moving LLVM_WINSYSROOT to config-ix.cmake.

For the GN build, I chose to pass a qualified path to diaguids in libs instead of pushing
a config with a /libpath: flag. The former requires a GN with
https://gn-review.googlesource.com/c/gn/+/12200, the latter requires D109624. The former is
more like the cmake build, arguably a bit simpler, and it's easier to check
for the wrong GN revision and easier to update GN.

Diff Detail

Event Timeline

thakis created this revision.Sep 13 2021, 11:14 AM
thakis requested review of this revision.Sep 13 2021, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2021, 11:14 AM
thakis updated this revision to Diff 372338.Sep 13 2021, 1:52 PM

regenerate diff with more context lines

hans accepted this revision.Sep 14 2021, 1:53 AM

lgtm

compiler-rt/cmake/config-ix.cmake
573

ultra nit: Indentation of the string looks off here and in the else branch. Same for the llvm/cmake/config-ix.cmake file.

This revision is now accepted and ready to land.Sep 14 2021, 1:53 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2021, 6:01 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Thanks!

Turns out there was an existing tab character in llvm/cmake/config-ix.cmake too. I replaced that with spaces that in a preparatory commit.

compiler-rt/cmake/config-ix.cmake
573

It looks off in phab, but looks good in the raw diff…oh whoops, that's because the line starts with a tab. My bad, fixed.

(In addition to fixing my editor config, TIL about git config core.whitespace tab-in-indent.)

saghir added a subscriber: saghir.Sep 14 2021, 2:53 PM

Hi, this patch is likely causing a failure on one of our bots:
https://lab.llvm.org/buildbot/#/builders/76/builds/3841

Can you please take a look at your convenience?
Thanks!

Hi, this patch is likely causing a failure on one of our bots:
https://lab.llvm.org/buildbot/#/builders/76/builds/3841

Can you please take a look at your convenience?
Thanks!

On taking a closer look, this did not look related to your change (I got tripped since your changes were the only ones that were built in that build.).
Restarting the bot seems to have fixed the error. The bot is passing now. Sorry for the false alarm.
Thanks!