From 4accc73d03dfa223db2e373475a1cdf9fea6d38b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 21 Sep 2022 14:54:06 +0200 Subject: Add winrt Platform SDK header search path for MSVC This is required, for example, to build QtGui. --- libbuild2/cc/guess.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libbuild2/cc/guess.cxx b/libbuild2/cc/guess.cxx index 85b1545..13b60aa 100644 --- a/libbuild2/cc/guess.cxx +++ b/libbuild2/cc/guess.cxx @@ -1517,8 +1517,8 @@ namespace build2 // Studio command prompt puts into INCLUDE) including any paths from the // compiler mode and their count. // - // Note that currently we don't add any ATL/MFC or WinRT paths (but could - // do that probably first checking if they exist/empty). + // Note that currently we don't add any ATL/MFC paths (but could do that + // probably first checking if they exist/empty). // static pair msvc_hdr (const msvc_info& mi, const strings& mo) @@ -1543,6 +1543,7 @@ namespace build2 r.push_back (dir_path (d) /= "ucrt" ); r.push_back (dir_path (d) /= "shared"); r.push_back (dir_path (d) /= "um" ); + r.push_back (dir_path (d) /= "winrt" ); } return make_pair (move (r), rn); @@ -1751,7 +1752,7 @@ namespace build2 // // OS-ABI is where things are not as clear cut. The OS part shouldn't // probably be just 'windows' since we have Win32 and WinCE. And - // WinRT. And Universal Windows Platform (UWP). So perhaps the + // WinRT. And Universal Windows Platform (UWP). So perhaps the // following values for OS: 'win32', 'wince', 'winrt', 'winup'. // // For 'win32' the ABI part could signal the Microsoft C/C++ runtime -- cgit v1.1