Skip to content

Commit 82fbe9f

Browse files
committed
Add new driver -gcc-toolchain argument
The option is only available in the new driver and passes search paths to the clang importer and clang linker when working with a gcc toolchain.
1 parent 8981535 commit 82fbe9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/Option/Options.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,11 @@ def nostartfiles:
18051805
HelpHidden, NewDriverOnlyOption]>,
18061806
HelpText<"Do not link in the Swift language startup routines">;
18071807

1808+
def gcc_toolchain: Separate<["-"], "gcc-toolchain">,
1809+
Flags<[HelpHidden, NewDriverOnlyOption, ArgumentIsPath]>,
1810+
MetaVarName<"<path>">,
1811+
HelpText<"Specify a directory where the clang importer and clang linker can find headers and libraries">;
1812+
18081813
// END ONLY SUPPORTED IN NEW DRIVER
18091814

18101815
def load_plugin_library:

0 commit comments

Comments
 (0)