Skip to content

Commit 8d0fd38

Browse files
[Options] Add missing -sil-output-dir and ir-output-dir flag
The swift-driver flags need to be declared in Options.td. Add the missing driver flags in swift-driver#1995
1 parent 450fe43 commit 8d0fd38

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/swift/Option/Options.td

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,16 @@ def pch_output_dir: Separate<["-"], "pch-output-dir">,
377377
Flags<[FrontendOption, HelpHidden, ArgumentIsPath]>,
378378
HelpText<"Directory to persist automatically created precompiled bridging headers">;
379379

380+
def sil_output_dir: Separate<["-"], "sil-output-dir">,
381+
Flags<[ArgumentIsPath, SupplementaryOutput]>,
382+
HelpText<"Output SIL files to directory <dir> as additional output during compilation">,
383+
MetaVarName<"<dir>">;
384+
385+
def ir_output_dir: Separate<["-"], "ir-output-dir">,
386+
Flags<[ArgumentIsPath, SupplementaryOutput]>,
387+
HelpText<"Output LLVM IR files to directory <dir> as additional output during compilation">,
388+
MetaVarName<"<dir>">;
389+
380390
def auto_bridging_header_chaining: Flag<["-"], "auto-bridging-header-chaining">,
381391
Flags<[FrontendOption, HelpHidden]>,
382392
HelpText<"Automatically chaining all the bridging headers">;

0 commit comments

Comments
 (0)