Skip to content

Commit f1440bf

Browse files
committed
Driver: introduce GNU spellings to control MSVC paths
Add a set of `-Xmicrosoft` flags to control the Windows SDK and VisualC tools directories. This allows control over the selection of the SDK and tools when using the GNU driver. Differential Revision: https://reviews.llvm.org/D145007 Reviewed By: mstorjo
1 parent d0db54e commit f1440bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7044,6 +7044,16 @@ def _SLASH_Gv : CLFlag<"Gv">,
70447044
def _SLASH_Gregcall : CLFlag<"Gregcall">,
70457045
HelpText<"Set __regcall as a default calling convention">;
70467046

7047+
// GNU Driver aliases
7048+
7049+
def : Separate<["-"], "Xmicrosoft-visualc-tools-root">, Alias<_SLASH_vctoolsdir>;
7050+
def : Separate<["-"], "Xmicrosoft-visualc-tools-version">,
7051+
Alias<_SLASH_vctoolsversion>;
7052+
def : Separate<["-"], "Xmicrosoft-windows-sdk-root">,
7053+
Alias<_SLASH_winsdkdir>;
7054+
def : Separate<["-"], "Xmicrosoft-windows-sdk-version">,
7055+
Alias<_SLASH_winsdkversion>;
7056+
70477057
// Ignored:
70487058

70497059
def _SLASH_analyze_ : CLIgnoredFlag<"analyze-">;

0 commit comments

Comments
 (0)