Skip to content

Commit 74d22e7

Browse files
committed
[cxx-interop] Emit -enable-experimental-cxx-interop into the serialized module interface
`.swiftinterface` files contain a list of compiler flags that were used to build the module. For example, the list includes `-enable-objc-interop`. It should also include `-enable-experimental-cxx-interop`, since it affects the way the module should be imported.
1 parent ff8464f commit 74d22e7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ def enable_experimental_concurrency :
278278
Flag<["-"], "enable-experimental-concurrency">,
279279
HelpText<"Enable experimental concurrency model">;
280280

281+
def enable_experimental_cxx_interop :
282+
Flag<["-"], "enable-experimental-cxx-interop">,
283+
HelpText<"Enable C++ interop code generation and config directives">;
284+
281285
def enable_lexical_borrow_scopes :
282286
Joined<["-"], "enable-lexical-borrow-scopes=">,
283287
HelpText<"Whether to emit lexical borrow scopes (default: true)">,
@@ -825,11 +829,6 @@ def emit_sorted_sil : Flag<["-"], "emit-sorted-sil">,
825829
def emit_syntax : Flag<["-"], "emit-syntax">,
826830
HelpText<"Parse input file(s) and emit the Syntax tree(s) as JSON">, ModeOpt;
827831

828-
def enable_experimental_cxx_interop :
829-
Flag<["-"], "enable-experimental-cxx-interop">,
830-
HelpText<"Enable C++ interop code generation and config directives">,
831-
Flags<[FrontendOption, HelpHidden]>;
832-
833832
def enable_cxx_interop :
834833
Flag<["-"], "enable-cxx-interop">,
835834
HelpText<"Alias for -enable-experimental-cxx-interop">,

0 commit comments

Comments
 (0)