Skip to content

Commit 6ceca08

Browse files
committed
fixup! HEAD
1 parent bd1a346 commit 6ceca08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Runtimes/cmake/modules/EmitSwiftInterface.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,5 @@ function(emit_swift_interface target)
4747
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-emit-variant-module-interface-path ${CMAKE_CURRENT_BINARY_DIR}/${module_name}.swiftmodule/${${PROJECT_NAME}_VARIANT_MODULE_TRIPLE}.swiftinterface>"
4848
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-emit-variant-private-module-interface-path ${CMAKE_CURRENT_BINARY_DIR}/${module_name}.swiftmodule/${${PROJECT_NAME}_VARIANT_MODULE_TRIPLE}.private.swiftinterface>")
4949
endif()
50-
target_compile_options(${target} PRIVATE
51-
$<$<COMPILE_LANGUAGE:Swift>:-library-level$<SEMICOLON>api>
52-
$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend$<SEMICOLON>-require-explicit-availability=ignore>)
5350
endif()
5451
endfunction()

Utilities/bootstrap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ def build_swiftpm_with_cmake(args):
738738
"-DSwiftCertificates_DIR=" + os.path.join(args.build_dirs["swift-certificates"], "cmake/modules"),
739739
"-DSwiftBuild_DIR=" + os.path.join(args.build_dirs["swift-build"], "cmake/modules"),
740740
"-DSWIFTPM_PATH_TO_SWIFT_SYNTAX_SOURCE=" + args.source_dirs["swift-syntax"],
741+
"-DSwiftPMRuntime_MODULE_TRIPLE={}".format((get_build_target(args), g_macos_deployment_target) if platform.system() == 'Darwin' else get_build_target(args)),
741742
]
742743

743744
if platform.system() == 'Darwin':
@@ -751,6 +752,8 @@ def build_swiftpm_with_cmake(args):
751752
mkdir_p(os.path.join(args.bootstrap_dir, "pm", "ManifestAPI"))
752753
shutil.copy2(os.path.join(args.bootstrap_dir, "Sources", "Runtimes", "PackageDescription", "PackageDescription.swiftmodule", "%s.swiftmodule" % triple),
753754
os.path.join(args.bootstrap_dir, "pm", "ManifestAPI", "PackageDescription.swiftmodule"))
755+
shutil.copy2(os.path.join(args.bootstrap_dir, "Sources", "Runtimes", "CompilerPluginSupport", "CompilerPluginSupport.swiftmodule", "%s.swiftmodule" % triple),
756+
os.path.join(args.bootstrap_dir, "pm", "ManifestAPI", "CompilerPluginSupport.swiftmodule"))
754757

755758
mkdir_p(os.path.join(args.bootstrap_dir, "pm", "PluginAPI"))
756759
shutil.copy2(os.path.join(args.bootstrap_dir, "Sources", "Runtimes", "PackagePlugin", "PackagePlugin.swiftmodule", "%s.swiftmodule" % triple),

0 commit comments

Comments
 (0)