Skip to content

Commit 99768eb

Browse files
committed
Revert "Switch overlays from using @exported to -import-underlying-module."
This reverts r29441 because it breaks the Linux build. I'll talk to Dmitri about this tomorrow. See rdar://problem/21254367 Swift SVN r29444
1 parent f335128 commit 99768eb

File tree

35 files changed

+37
-3
lines changed

35 files changed

+37
-3
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ function(_compile_swift_files dependency_target_out_var_name)
298298
endif()
299299

300300
if(SWIFTFILE_IS_SDK_OVERLAY)
301-
list(APPEND swift_flags
302-
"-autolink-force-load"
303-
"-import-underlying-module")
301+
list(APPEND swift_flags "-autolink-force-load")
304302
endif()
305303

306304
list(APPEND swift_flags ${SWIFT_EXPERIMENTAL_EXTRA_FLAGS})

stdlib/public/SDK/AVFoundation/AVFoundation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import AVFoundation // Clang module
12
import Foundation
23

34
extension AVError : _BridgedNSError {

stdlib/public/SDK/AppKit/AppKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14+
@exported import AppKit
1415

1516
class REPLApplication : NSApplication {
1617
}

stdlib/public/SDK/AssetsLibrary/AssetsLibrary.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import AssetsLibrary // Clang module
14+
1315
//===----------------------------------------------------------------------===//
1416
// ALAssetsLibrary.h
1517
//===----------------------------------------------------------------------===//

stdlib/public/SDK/CloudKit/CloudKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import CloudKit
12
import Foundation
23

34
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)

stdlib/public/SDK/CoreAudio/CoreAudio.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import CoreAudio // Clang module
14+
1315
extension UnsafeBufferPointer {
1416
/// Initialize an `UnsafeBufferPointer<T>` from an `AudioBuffer`.
1517
public init(_ audioBuffer: AudioBuffer) {

stdlib/public/SDK/CoreBluetooth/CoreBluetooth.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import CoreBluetooth
12
import Foundation
23

34
extension CBError : _BridgedNSError {

stdlib/public/SDK/CoreData/CoreData.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import CoreData
12
import Foundation
23

34
public extension NSCocoaError {

stdlib/public/SDK/CoreGraphics/CGFloat.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ word_bits = int(CMAKE_SIZEOF_VOID_P) * 8
1919

2020
}%
2121

22+
@exported import CoreGraphics
2223
import Darwin
2324

2425
public struct CGFloat {

stdlib/public/SDK/CoreGraphics/CoreGraphics.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import CoreGraphics
1314
import Darwin
1415

1516
//===----------------------------------------------------------------------===//

stdlib/public/SDK/CoreImage/CoreImage.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14+
@exported import CoreImage // Clang module
1415

1516
#if os(OSX)
1617
import QuartzCore

stdlib/public/SDK/CoreLocation/CoreLocation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import CoreLocation
12
import Foundation
23

34
extension CLError : _BridgedNSError {

stdlib/public/SDK/CoreMedia/CMTime.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import CoreMedia // Clang module
1314

1415
// CMTIME_IS_VALID
1516
// CMTIME_IS_INVALID

stdlib/public/SDK/CoreMedia/CMTimeRange.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import CoreMedia // Clang module
1314

1415
// CMTIMERANGE_IS_VALID
1516
// CMTIMERANGE_IS_INVALID

stdlib/public/SDK/CoreMedia/CoreMedia.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import CoreMedia // Clang module
1314

1415
// Nothing here yet.
1516

stdlib/public/SDK/Darwin/Darwin.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import Darwin // Clang module
1314

1415

1516
//===----------------------------------------------------------------------===//

stdlib/public/SDK/Dispatch/Dispatch.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import Dispatch
1314

1415
//===----------------------------------------------------------------------===//
1516
// Macros

stdlib/public/SDK/EventKit/EventKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import EventKit
12
import Foundation
23

34
extension EKErrorCode : _BridgedNSError {

stdlib/public/SDK/Foundation/Foundation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import Foundation // Clang module
1314
import CoreFoundation
1415
import CoreGraphics
1516

stdlib/public/SDK/GLKit/GLKit.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// GLKit overlays for Swift
1313
//===----------------------------------------------------------------------===//
1414

15+
@exported import GLKit // Clang module
1516

1617
// The GLKit headers provide a fairly complete set of types and operations
1718
// that Swift's importer is now able to present in Swift. However, Swift

stdlib/public/SDK/GameKit/GameKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import GameKit
12
import Foundation
23

34
extension GKErrorCode : _BridgedNSError {

stdlib/public/SDK/GameplayKit/GameplayKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import GameplayKit
1314

1415
@asmname("GK_Swift_GKEntity_componentForClass")
1516
internal func GK_Swift_GKEntity_componentForClass(

stdlib/public/SDK/HomeKit/HomeKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import HomeKit
12
import Foundation
23

34
@available(iOS 8.0, *)

stdlib/public/SDK/LocalAuthentication/LocalAuthentication.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import LocalAuthentication
12
import Foundation
23

34
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)

stdlib/public/SDK/MultipeerConnectivity/MultipeerConnectivity.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import MultipeerConnectivity
12
import Foundation
23

34
@available(OSX, introduced=10.10) @available(iOS, introduced=7.0)

stdlib/public/SDK/OpenCL/OpenCL.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import OpenCL // Clang module
1314

1415
@available(OSX, introduced=10.7)
1516
public func clSetKernelArgsListAPPLE(

stdlib/public/SDK/PassKit/PassKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import PassKit
12
import Foundation
23

34
@available(iOS, introduced=6.0)

stdlib/public/SDK/SceneKit/SceneKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import SceneKit // Clang module
1314

1415
@available(iOS, introduced=8.0)
1516
@available(OSX, introduced=10.8)

stdlib/public/SDK/Security/Security.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import Security // Clang module
1314

1415
//===----------------------------------------------------------------------===//
1516
// SecBase.h

stdlib/public/SDK/SpriteKit/SpriteKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import SpriteKit
12

23
// SpriteKit defines SKColor using a macro.
34

stdlib/public/SDK/UIKit/UIKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14+
@exported import UIKit
1415

1516
// These are un-imported macros in UIKit.
1617

stdlib/public/SDK/WatchConnectivity/WatchConnectivity.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import WatchConnectivity
12
import Foundation
23

34
@available(iOS, introduced=9.0)

stdlib/public/SDK/WatchKit/WatchKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import WatchKit
1314
import Foundation
1415

1516
@available(iOS 8.2, *)

stdlib/public/SDK/WebKit/WebKit.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@exported import WebKit
12
import Foundation
23

34
@available(OSX, introduced=10.10) @available(iOS, introduced=8.0)

stdlib/public/SDK/XCTest/XCTest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@exported import XCTest // Clang module
1314

1415
import CoreGraphics
1516

0 commit comments

Comments
 (0)