This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Add support for Windows 10 SDK
ClosedPublic

Authored by ikudrin on Sep 13 2015, 1:01 AM.

Details

Summary

With Windows 10 SDK, Include and Lib directories now contain an additional subfolder with the name that corresponds to the full version of the SDK, for example:

  • C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\um
  • C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64

Diff Detail

Event Timeline

ikudrin updated this revision to Diff 34641.Sep 13 2015, 1:01 AM
ikudrin retitled this revision from to [Driver] Added support for Windows 10 SDK.
ikudrin updated this object.
ikudrin added reviewers: ruiu, rnk.
ikudrin added a subscriber: cfe-commits.
majnemer added inline comments.
cfe/trunk/lib/Driver/MSVCToolChain.cpp
263 ↗(On Diff #34641)

Isn't this just Major == 8 || Major == 9 ?

278–279 ↗(On Diff #34641)

Same line please.

ikudrin updated this revision to Diff 34965.Sep 16 2015, 11:42 PM
  • reworked the conditional statement
  • formatting
ikudrin retitled this revision from [Driver] Added support for Windows 10 SDK to [Driver] Add support for Windows 10 SDK.Sep 16 2015, 11:42 PM
ikudrin marked 2 inline comments as done.Sep 16 2015, 11:45 PM
rnk accepted this revision.Sep 17 2015, 9:11 AM
rnk edited edge metadata.

Looks like I forgot to submit the comments I wrote. Anyway, looks good.

cfe/trunk/lib/Driver/MSVCToolChain.cpp
238 ↗(On Diff #34641)

We don't usually declare local StringRefs const, even to document that the value does not change.

This revision is now accepted and ready to land.Sep 17 2015, 9:11 AM

I found a new problem, after install WDK. I'll submit a new version in a moment.

ikudrin updated this revision to Diff 35013.EditedSep 17 2015, 9:58 AM
ikudrin edited edge metadata.

Skip directories like C:\Program Files (x86)\Windows Kits\10\Include\wdf, which come from WDK installation, when looking for SDK version. Now, we detect directories even better than vsvars32.bat does in that situation.

ikudrin marked an inline comment as done.Sep 17 2015, 9:59 AM

Please, can someone commit the changes as I don't have write permissions?

ikudrin updated this revision to Diff 35585.Sep 23 2015, 10:15 PM
  • Rebased to the top of history
  • Made pathes local to clang subtree
ikudrin closed this revision.Sep 23 2015, 10:18 PM
rnk added a comment.Oct 8 2015, 10:16 AM

Looks like this got committed. Sorry for the delay, I was travelling.