Skip to content

Commit 64e8926

Browse files
author
Joe Shajrawi
committed
---
yaml --- r: 335359 b: refs/heads/rxwei-patch-1 c: e7c6518 h: refs/heads/master i: 335357: 958ea42 335355: 00fef3a 335351: fb73f2a 335343: ce7177a 335327: 67080b3 335295: f7ba9ba 335231: cbb3138 335103: 6a68d2b 334847: 69a99c5
1 parent 4ccd769 commit 64e8926

File tree

405 files changed

+3766
-7266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+3766
-7266
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: c2aab0018f997dbca89fe599b68b7c718e238f2e
1018+
refs/heads/rxwei-patch-1: e7c6518c7bea07d464db902c4a26058a9a2a2c2f
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/CHANGELOG.md

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ CHANGELOG
66

77
| Contents |
88
| :--------------------- |
9-
| [Swift 5.1](#swift-51) |
109
| [Swift 5.0](#swift-50) |
1110
| [Swift 4.2](#swift-42) |
1211
| [Swift 4.1](#swift-41) |
@@ -25,78 +24,8 @@ CHANGELOG
2524
Swift 5.1
2625
---------
2726

28-
* [SR-7799][]:
29-
30-
Enum cases can now be matched against an optional enum without
31-
requiring a '?' at the end of the pattern.
32-
33-
```swift
34-
enum Foo { case zero, one }
35-
36-
let foo: Foo? = .zero
37-
38-
switch foo {
39-
case .zero: break
40-
case .one: break
41-
case .none: break
42-
}
43-
```
44-
45-
* `weak` and `unowned` variables can now be used inside types that
46-
declare `Equatable` or `Hashable` conformance.
47-
48-
* [SR-2688][]:
49-
50-
An `@autoclosure` closure can now be a typealias.
51-
52-
```swift
53-
class Foo {
54-
typealias FooClosure = () -> String
55-
func fooFunction(closure: @autoclosure FooClosure) {}
56-
}
57-
```
58-
59-
* [SR-7601][]:
60-
61-
Functions marked with `@objc` can now return `Self`
62-
63-
```swift
64-
@objc func returnDynamicSelf() -> Self { return self }
65-
```
66-
67-
* [SR-2176][]:
68-
69-
Assigning '.none' to an optional enum which also has a 'none' case
70-
or comparing such an enum with '.none' will now warn. Such expressions
71-
create an ambiguity because the compiler chooses Optional.none
72-
over Foo.none.
73-
74-
```swift
75-
enum Foo { case none }
76-
77-
// Assigned Optional.none instead of Foo.none
78-
let foo: Foo? = .none
79-
// Comparing with Optional.none instead of Foo.none
80-
let isEqual = foo == .none
81-
```
82-
83-
The compiler will provide a warning along with a fix-it to
84-
replace '.none' with 'Optional.none' or 'Foo.none' to resolve
85-
the ambiguity.
86-
8727
* Key path expressions can now include references to tuple elements.
8828

89-
* Single-parameter functions accepting values of type `Any` are no
90-
longer preferred over other functions.
91-
92-
```swift
93-
func foo(_: Any) { print("Any") }
94-
func foo<T>(_: T) { print("T") }
95-
foo(0) // prints "Any" in Swift < 5.1, "T" in Swift 5.1
96-
```
97-
98-
**Add new entries to the top of this section, not here!**
99-
10029
Swift 5.0
10130
---------
10231

@@ -7511,16 +7440,12 @@ Swift 1.0
75117440
[SR-1446]: <https://bugs.swift.org/browse/SR-1446>
75127441
[SR-1529]: <https://bugs.swift.org/browse/SR-1529>
75137442
[SR-2131]: <https://bugs.swift.org/browse/SR-2131>
7514-
[SR-2176]: <https://bugs.swift.org/browse/SR-2176>
75157443
[SR-2388]: <https://bugs.swift.org/browse/SR-2388>
75167444
[SR-2394]: <https://bugs.swift.org/browse/SR-2394>
75177445
[SR-2608]: <https://bugs.swift.org/browse/SR-2608>
7518-
[SR-2688]: <https://bugs.swift.org/browse/SR-2688>
75197446
[SR-4248]: <https://bugs.swift.org/browse/SR-4248>
75207447
[SR-5581]: <https://bugs.swift.org/browse/SR-5581>
75217448
[SR-5719]: <https://bugs.swift.org/browse/SR-5719>
75227449
[SR-7139]: <https://bugs.swift.org/browse/SR-7139>
75237450
[SR-7251]: <https://bugs.swift.org/browse/SR-7251>
7524-
[SR-7601]: <https://bugs.swift.org/browse/SR-7601>
7525-
[SR-7799]: <https://bugs.swift.org/browse/SR-7799>
75267451
[SR-8109]: <https://bugs.swift.org/browse/SR-8109>

branches/rxwei-patch-1/CMakeLists.txt

Lines changed: 48 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,12 @@ endif()
1111
list(APPEND CMAKE_MODULE_PATH
1212
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
1313

14-
if(DEFINED CMAKE_JOB_POOLS)
15-
# CMake < 3.11 doesn't support CMAKE_JOB_POOLS. Manually set the property.
16-
set_property(GLOBAL PROPERTY JOB_POOLS "${CMAKE_JOB_POOLS}")
17-
else()
18-
# Make a job pool for things that can't yet be distributed
19-
cmake_host_system_information(
20-
RESULT localhost_logical_cores QUERY NUMBER_OF_LOGICAL_CORES)
21-
set_property(GLOBAL PROPERTY JOB_POOLS local_jobs=${localhost_logical_cores})
22-
# Put linking in that category
23-
set(CMAKE_JOB_POOL_LINK local_jobs)
24-
endif()
14+
# Make a job pool for things that can't yet be distributed
15+
cmake_host_system_information(
16+
RESULT localhost_logical_cores QUERY NUMBER_OF_LOGICAL_CORES)
17+
set_property(GLOBAL PROPERTY JOB_POOLS local_jobs=${localhost_logical_cores})
18+
# Put linking in that category
19+
set_property(GLOBAL PROPERTY JOB_POOL_LINK local_jobs)
2520

2621
ENABLE_LANGUAGE(C)
2722

@@ -106,6 +101,25 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
106101
message(STATUS "No build type was specified, will default to ${CMAKE_BUILD_TYPE}")
107102
endif()
108103

104+
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
105+
"Build type for the Swift standard library and SDK overlays [Debug, RelWithDebInfo, Release, MinSizeRel]")
106+
set_property(CACHE SWIFT_STDLIB_BUILD_TYPE PROPERTY
107+
STRINGS "Debug" "RelWithDebInfo" "Release" "MinSizeRel")
108+
109+
is_build_type_optimized("${SWIFT_STDLIB_BUILD_TYPE}" swift_optimized)
110+
if(swift_optimized)
111+
set(SWIFT_STDLIB_ASSERTIONS_default FALSE)
112+
else()
113+
set(SWIFT_STDLIB_ASSERTIONS_default TRUE)
114+
endif()
115+
option(SWIFT_STDLIB_ASSERTIONS
116+
"Enable internal checks for the Swift standard library (useful for debugging the library itself, does not affect checks required for safety)"
117+
"${SWIFT_STDLIB_ASSERTIONS_default}")
118+
119+
option(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER
120+
"Use the host compiler and not the internal clang to build the swift runtime"
121+
FALSE)
122+
109123
set(SWIFT_ANALYZE_CODE_COVERAGE FALSE CACHE STRING
110124
"Build Swift with code coverage instrumenting enabled [FALSE, NOT-MERGED, MERGED]")
111125
set_property(CACHE SWIFT_ANALYZE_CODE_COVERAGE PROPERTY
@@ -132,53 +146,6 @@ set(SWIFT_ENABLE_LLD_LINKER TRUE CACHE BOOL
132146
set(SWIFT_ENABLE_GOLD_LINKER TRUE CACHE BOOL
133147
"Enable using the gold linker when available")
134148

135-
set(SWIFT_TOOLS_ENABLE_LTO OFF CACHE STRING "Build Swift tools with LTO. One
136-
must specify the form of LTO by setting this to one of: 'full', 'thin'. This
137-
option only affects the tools that run on the host (the compiler), and has
138-
no effect on the target libraries (the standard library and the runtime).")
139-
140-
# The following only works with the Ninja generator in CMake >= 3.0.
141-
set(SWIFT_PARALLEL_LINK_JOBS "" CACHE STRING
142-
"Define the maximum number of linker jobs for swift.")
143-
144-
option(SWIFT_FORCE_OPTIMIZED_TYPECHECKER "Override the optimization setting of
145-
the type checker so that it always compiles with optimization. This eases
146-
debugging after type checking occurs by speeding up type checking" FALSE)
147-
148-
# Allow building Swift with Clang's Profile Guided Optimization
149-
if(SWIFT_PROFDATA_FILE AND EXISTS ${SWIFT_PROFDATA_FILE})
150-
if(NOT CMAKE_C_COMPILER_ID MATCHES Clang)
151-
message(FATAL_ERROR "SWIFT_PROFDATA_FILE can only be specified when compiling with clang")
152-
endif()
153-
add_definitions("-fprofile-instr-use=${SWIFT_PROFDATA_FILE}")
154-
endif()
155-
156-
#
157-
# User-configurable Swift Standard Library specific options.
158-
#
159-
# TODO: Once the stdlib/compiler builds are split, this should be sunk into the
160-
# stdlib cmake.
161-
#
162-
163-
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
164-
"Build type for the Swift standard library and SDK overlays [Debug, RelWithDebInfo, Release, MinSizeRel]")
165-
set_property(CACHE SWIFT_STDLIB_BUILD_TYPE PROPERTY
166-
STRINGS "Debug" "RelWithDebInfo" "Release" "MinSizeRel")
167-
168-
is_build_type_optimized("${SWIFT_STDLIB_BUILD_TYPE}" swift_optimized)
169-
if(swift_optimized)
170-
set(SWIFT_STDLIB_ASSERTIONS_default FALSE)
171-
else()
172-
set(SWIFT_STDLIB_ASSERTIONS_default TRUE)
173-
endif()
174-
option(SWIFT_STDLIB_ASSERTIONS
175-
"Enable internal checks for the Swift standard library (useful for debugging the library itself, does not affect checks required for safety)"
176-
"${SWIFT_STDLIB_ASSERTIONS_default}")
177-
178-
option(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER
179-
"Use the host compiler and not the internal clang to build the swift runtime"
180-
FALSE)
181-
182149
set(SWIFT_SDKS "" CACHE STRING
183150
"If non-empty, limits building target binaries only to specified SDKs (despite other SDKs being available)")
184151

@@ -194,15 +161,32 @@ set(SWIFT_NATIVE_CLANG_TOOLS_PATH "" CACHE STRING
194161
"Path to the directory that contains Clang tools that are executable on the build machine")
195162

196163
set(SWIFT_NATIVE_SWIFT_TOOLS_PATH "" CACHE STRING
197-
"Path to the directory that contains Swift tools that are executable on the build machine")
164+
"Path to the directory that contains Swift tools that are executable on the build machine")
165+
166+
set(SWIFT_TOOLS_ENABLE_LTO OFF CACHE STRING "Build Swift tools with LTO. One
167+
must specify the form of LTO by setting this to one of: 'full', 'thin'. This
168+
option only affects the tools that run on the host (the compiler), and has
169+
no effect on the target libraries (the standard library and the runtime).")
170+
171+
# The following only works with the Ninja generator in CMake >= 3.0.
172+
set(SWIFT_PARALLEL_LINK_JOBS "" CACHE STRING
173+
"Define the maximum number of linker jobs for swift.")
174+
175+
option(SWIFT_FORCE_OPTIMIZED_TYPECHECKER "Override the optimization setting of
176+
the type checker so that it always compiles with optimization. This eases
177+
debugging after type checking occurs by speeding up type checking" FALSE)
198178

199179
option(SWIFT_ENABLE_PARSEABLE_MODULE_INTERFACES
200180
"Generate .swiftinterface files alongside .swiftmodule files"
201181
TRUE)
202182

203-
option(SWIFT_STDLIB_ENABLE_SIB_TARGETS
204-
"Should we generate sib targets for the stdlib or not?"
205-
FALSE)
183+
# Allow building Swift with Clang's Profile Guided Optimization
184+
if(SWIFT_PROFDATA_FILE AND EXISTS ${SWIFT_PROFDATA_FILE})
185+
if(NOT CMAKE_C_COMPILER_ID MATCHES Clang)
186+
message(FATAL_ERROR "SWIFT_PROFDATA_FILE can only be specified when compiling with clang")
187+
endif()
188+
add_definitions("-fprofile-instr-use=${SWIFT_PROFDATA_FILE}")
189+
endif()
206190

207191
#
208192
# User-configurable Android specific options.
@@ -251,8 +235,8 @@ option(SWIFT_RUNTIME_CRASH_REPORTER_CLIENT
251235
FALSE)
252236

253237
option(SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
254-
"Enable the Swift stable ABI's class marker bit for new deployment targets"
255-
TRUE)
238+
"Enable the Swift stable ABI's class marker bit"
239+
FALSE)
256240

257241
set(SWIFT_DARWIN_XCRUN_TOOLCHAIN "XcodeDefault" CACHE STRING
258242
"The name of the toolchain to pass to 'xcrun'")

branches/rxwei-patch-1/benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ macro(configure_sdks_darwin)
7777
set(appletvos_ver "9.1")
7878
set(watchos_ver "2.0")
7979

80-
set(macosx_vendor "apple")
81-
set(iphoneos_vendor "apple")
82-
set(appletvos_vendor "apple")
83-
set(watchos_vendor "apple")
84-
8580
set(macosx_triple_platform "macosx")
8681
set(iphoneos_triple_platform "ios")
8782
set(appletvos_triple_platform "tvos")

0 commit comments

Comments
 (0)