Skip to content

Commit 728f77c

Browse files
authored
Merge pull request #42279 from eeckstein/fix-hosttools-mode
Fix the 'hosttools' bootstrapping build mode
2 parents a7edd60 + 9906666 commit 728f77c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function(add_swift_compiler_modules_library name)
7474

7575
set(swift_compile_options
7676
"-Xfrontend" "-validate-tbd-against-ir=none"
77-
"-Xfrontend" "-enable-experimental-cxx-interop"
77+
"-Xfrontend" "-enable-cxx-interop"
7878
"-Xcc" "-UIBOutlet" "-Xcc" "-UIBAction" "-Xcc" "-UIBInspectable")
7979

8080
if(CMAKE_BUILD_TYPE STREQUAL Debug)

include/swift/Option/FrontendOptions.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,11 @@ def enable_experimental_cxx_interop :
828828
HelpText<"Enable C++ interop code generation and config directives">,
829829
Flags<[FrontendOption, HelpHidden]>;
830830

831+
def enable_cxx_interop :
832+
Flag<["-"], "enable-cxx-interop">,
833+
HelpText<"Alias for -enable-experimental-cxx-interop">,
834+
Flags<[FrontendOption, HelpHidden]>;
835+
831836
def use_malloc : Flag<["-"], "use-malloc">,
832837
HelpText<"Allocate internal data structures using malloc "
833838
"(for memory debugging)">;

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
757757
Opts.ClangTarget = llvm::Triple(A->getValue());
758758
}
759759

760-
Opts.EnableCXXInterop |= Args.hasArg(OPT_enable_experimental_cxx_interop);
760+
Opts.EnableCXXInterop |= Args.hasArg(OPT_enable_experimental_cxx_interop) |
761+
Args.hasArg(OPT_enable_cxx_interop);
761762
Opts.EnableObjCInterop =
762763
Args.hasFlag(OPT_enable_objc_interop, OPT_disable_objc_interop,
763764
Target.isOSDarwin());

0 commit comments

Comments
 (0)