Skip to content

Enable building TestFoundation for profiling in Xcode #1180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Foundation.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,7 @@
OTHER_LDFLAGS = (
"-twolevel_namespace",
"-Wl,-alias_list,CoreFoundation/Base.subproj/SymbolAliases",
"-Wl,-all_load",
"-sectcreate",
__UNICODE,
__csbitmaps,
Expand Down
1 change: 1 addition & 0 deletions Foundation/Data.swift
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ public final class _DataStorage {
}
}

@_versioned
internal class _NSSwiftData : NSData {
var _backing: _DataStorage!
var _range: Range<Data.Index>!
Expand Down
2 changes: 2 additions & 0 deletions Foundation/NSSwiftRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ internal func _CFZeroUnsafeIvars<T>(_ arg: inout T) {
}
}

@_versioned
@_cdecl("__CFSwiftGetBaseClass")
internal func __CFSwiftGetBaseClass() -> UnsafeRawPointer {
return unsafeBitCast(__NSCFType.self, to:UnsafeRawPointer.self)
}

@_versioned
@_cdecl("__CFInitializeSwift")
internal func __CFInitializeSwift() {

Expand Down