Skip to content

Commit 5ccfc46

Browse files
authored
Driver: introduce GNU spellings to control MSVC paths (#6350)
Add a set of `-Xmicrosoft` flags to control the Windows SDK and VisualC tools directories. This allows control over the selection of teh SDK and tools when using the GNU driver.
1 parent df9e0d1 commit 5ccfc46

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7135,6 +7135,15 @@ def _SLASH_Gv : CLFlag<"Gv">,
71357135
def _SLASH_Gregcall : CLFlag<"Gregcall">,
71367136
HelpText<"Set __regcall as a default calling convention">;
71377137

7138+
// Swift extension flags
7139+
def : Separate<["-"], "Xmicrosoft-windows-sdk-root">, Alias<_SLASH_winsdkdir>;
7140+
def : Separate<["-"], "Xmicrosoft-windows-sdk-version">,
7141+
Alias<_SLASH_winsdkversion>;
7142+
def : Separate<["-"], "Xmicrosoft-visualc-tools-root">,
7143+
Alias<_SLASH_vctoolsdir>;
7144+
def : Separate<["-"], "Xmicrosoft-visualc-tools-version">,
7145+
Alias<_SLASH_vctoolsversion>;
7146+
71387147
// Ignored:
71397148

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

0 commit comments

Comments
 (0)