Skip to content

Commit bdc42e7

Browse files
committed
Revert several commits working around the autolinking breakage.
Swift was failing to autolink frameworks in the new text-based SDKs. Clang r253060 fixes the underlying issue, so we can go back to relying on autolinking for these. This reverts the following commits (newest to oldest): f658841 59092a3 7ea9d54 e52ef22 rdar://problem/23511008
1 parent 956b04f commit bdc42e7

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

stdlib/public/SDK/UIKit/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ add_swift_library(swiftUIKit IS_SDK_OVERLAY
22
DesignatedInitializers.mm
33
UIKit.swift
44
TARGET_SDKS IOS IOS_SIMULATOR TVOS TVOS_SIMULATOR WATCHOS WATCHOS_SIMULATOR
5-
SWIFT_MODULE_DEPENDS ObjectiveC Foundation CoreGraphics
6-
SWIFT_MODULE_DEPENDS_IOS Contacts CoreImage CoreGraphics
7-
SWIFT_MODULE_DEPENDS_TVOS CoreImage CoreGraphics
5+
SWIFT_MODULE_DEPENDS ObjectiveC Foundation
6+
SWIFT_MODULE_DEPENDS_IOS Contacts CoreImage
7+
SWIFT_MODULE_DEPENDS_TVOS CoreImage
88
SWIFT_COMPILE_FLAGS_WATCHOS -Xfrontend -disable-autolink-framework -Xfrontend CoreText
99
FRAMEWORK_DEPENDS UIKit)
1010

test/lit.cfg

+2-5
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,12 @@ if run_vendor == 'apple':
557557
(run_cpu, run_os, run_vers, clang_mcp_opt))
558558

559559
config.target_cc_options = target_cc_options
560-
extra_frameworks = ['AppKit', 'CoreGraphics', 'SceneKit', 'CoreLocation',
561-
'Accelerate', 'CoreImage', 'QuartzCore', 'CoreMedia',
562-
'OpenCL']
563560
config.target_build_swift = (
564-
"%s %s %s -F %s -Xlinker -rpath -Xlinker %s %s %s %s %s"
561+
"%s %s %s -F %s -Xlinker -rpath -Xlinker %s %s %s %s"
565562
% (xcrun_prefix, config.swiftc, target_options,
566563
extra_frameworks_dir, extra_frameworks_dir,
567564
sdk_overlay_linker_opt, config.swift_test_options,
568-
swift_execution_tests_extra_flags, " -framework " + " -framework ".join(extra_frameworks)))
565+
swift_execution_tests_extra_flags))
569566
config.target_swift_frontend = (
570567
"%s -frontend %s -sdk %s %s" %
571568
(config.swiftc, target_options, config.variant_sdk,

validation-test/stdlib/GameplayKit.swift

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
// REQUIRES: objc_interop
55
// UNSUPPORTED: OS=watchos
6-
// REQUIRES: rdar23527707
76

87
import StdlibUnittest
98
import GameplayKit

validation-test/stdlib/OpenCLSDKOverlay.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
33
// REQUIRES: OS=macosx
4-
// REQUIRES: rdar23505191
54

65
// Translated from standard OpenCL hello.c program
76

0 commit comments

Comments
 (0)