Skip to content

Commit 7451b36

Browse files
authored
---
yaml --- r: 340415 b: refs/heads/rxwei-patch-1 c: 5a2fd74 h: refs/heads/master i: 340413: d54604a 340411: eec2e3f 340407: 1d1aad4 340399: cc474d5 340383: 9325d1a 340351: 4dc7c2c
1 parent 326808e commit 7451b36

File tree

1,184 files changed

+26040
-11801
lines changed

Some content is hidden

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

1,184 files changed

+26040
-11801
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: 6bf0826524b10612f9905cef150df96edcbd57cd
1018+
refs/heads/rxwei-patch-1: 5a2fd7441bb8dbaa9427932ce210211a46de318b
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/.mailmap

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ Daniel Duan <[email protected]> <[email protected]>
2929
Dante Broggi <[email protected]>
3030
3131
32-
3332
3433
3534
36-
37-
David Rönnqvist <[email protected]>
35+
36+
David Rönnqvist <[email protected]>
3837
3938
4039
@@ -43,10 +42,8 @@ Davide Italiano <[email protected]> <[email protected]>
4342
4443
4544
46-
4745
4846
Erik Eckstein <[email protected]>
49-
5047
5148
Ewa Matejska <[email protected]>
5249
@@ -130,15 +127,13 @@ Ross Bayer <[email protected]>
130127
131128
132129
133-
134130
135131
Stephen Canon <[email protected]>
136132
137133
Sukolsak Sakshuwong <[email protected]>
138134
139135
140136
141-
142137
143138
144139

branches/rxwei-patch-1/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,28 @@ CHANGELOG
2626
Swift Next
2727
----------
2828

29+
* [SR-8974][]:
30+
31+
Duplicate tuple element labels are no longer allowed, because it leads
32+
to incorrect behavior. For example:
33+
34+
```
35+
let dupLabels: (foo: Int, foo: Int) = (foo: 1, foo: 2)
36+
37+
enum Foo { case bar(x: Int, x: Int) }
38+
let f: Foo = .bar(x: 0, x: 1)
39+
```
40+
41+
will now be diagnosed as an error.
42+
43+
Note: You can still use duplicate labels when declaring functions and
44+
subscripts, as long as the internal labels are different. For example:
45+
46+
```
47+
func foo(bar x: Int, bar y: Int) {}
48+
subscript(a x: Int, a y: Int) -> Int {}
49+
```
50+
2951
* [SR-6118][]:
3052

3153
Subscripts can now declare default arguments:
@@ -7696,5 +7718,6 @@ Swift 1.0
76967718
[SR-7799]: <https://bugs.swift.org/browse/SR-7799>
76977719
[SR-8109]: <https://bugs.swift.org/browse/SR-8109>
76987720
[SR-8546]: <https://bugs.swift.org/browse/SR-8546>
7721+
[SR-8974]: <https://bugs.swift.org/browse/SR-8974>
76997722
[SR-9043]: <https://bugs.swift.org/browse/SR-9043>
77007723
[SR-9827]: <https://bugs.swift.org/browse/SR-9827>

branches/rxwei-patch-1/CMakeLists.txt

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ endif()
117117

118118
set(SWIFT_ANALYZE_CODE_COVERAGE FALSE CACHE STRING
119119
"Build Swift with code coverage instrumenting enabled [FALSE, NOT-MERGED, MERGED]")
120-
set_property(CACHE SWIFT_ANALYZE_CODE_COVERAGE PROPERTY
121-
STRINGS FALSE "NOT-MERGED" "MERGED")
122120

123121
# SWIFT_VERSION is deliberately /not/ cached so that an existing build directory
124122
# can be reused when a new version of Swift comes out (assuming the user hasn't
@@ -171,8 +169,20 @@ endif()
171169

172170
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
173171
"Build type for the Swift standard library and SDK overlays [Debug, RelWithDebInfo, Release, MinSizeRel]")
174-
set_property(CACHE SWIFT_STDLIB_BUILD_TYPE PROPERTY
175-
STRINGS "Debug" "RelWithDebInfo" "Release" "MinSizeRel")
172+
# Allow the user to specify the standard library CMAKE_MSVC_RUNTIME_LIBRARY
173+
# value. The following values are valid:
174+
# - MultiThreaded (/MT)
175+
# - MultiThreadedDebug (/MTd)
176+
# - MultiThreadedDLL (/MD)
177+
# - MultiThreadedDebugDLL (/MDd)
178+
if(CMAKE_BUILD_TYPE STREQUAL Debug)
179+
set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY_default MultiThreadedDebugDLL)
180+
else()
181+
set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY_default MultiThreadedDLL)
182+
endif()
183+
set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY
184+
${SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY_default}
185+
CACHE STRING "MSVC Runtime Library for the standard library")
176186

177187
is_build_type_optimized("${SWIFT_STDLIB_BUILD_TYPE}" swift_optimized)
178188
if(swift_optimized)
@@ -213,6 +223,17 @@ option(SWIFT_STDLIB_ENABLE_SIB_TARGETS
213223
"Should we generate sib targets for the stdlib or not?"
214224
FALSE)
215225

226+
227+
set(SWIFT_DARWIN_SUPPORTED_ARCHS "" CACHE STRING
228+
"Semicolon-separated list of architectures to configure on Darwin platforms. \
229+
If left empty all default architectures are configured.")
230+
231+
set(SWIFT_DARWIN_MODULE_ARCHS "" CACHE STRING
232+
"Semicolon-separated list of architectures to configure Swift module-only \
233+
targets on Darwin platforms. These targets are in addition to the full \
234+
library targets.")
235+
236+
216237
#
217238
# User-configurable Android specific options.
218239
#

branches/rxwei-patch-1/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Please make sure you use Python 2.x. Python 3.x is not supported currently.
7676

7777
#### macOS
7878

79-
To build for macOS, you need [Xcode 10.2 beta](https://developer.apple.com/xcode/downloads/).
79+
To build for macOS, you need [Xcode 11 beta](https://developer.apple.com/xcode/downloads/).
8080
The required version of Xcode changes frequently, and is often a beta release.
8181
Check this document or the host information on <https://ci.swift.org> for the
8282
current required version.
@@ -141,26 +141,26 @@ more environments.
141141

142142
To build using Ninja, run:
143143

144-
utils/build-script --release-debuginfo
144+
swift/utils/build-script --release-debuginfo
145145

146146
When developing Swift, it helps to build what you're working on in a debug
147147
configuration while building the rest of the project with optimizations. Below
148148
are some examples of using debug variants:
149149

150-
utils/build-script --release-debuginfo --debug-swift # Swift frontend built in debug
151-
utils/build-script --release-debuginfo --debug-swift-stdlib # Standard library built in debug
152-
utils/build-script --release-debuginfo --debug-swift --force-optimized-typechecker # Swift frontend sans type checker built in debug
150+
swift/utils/build-script --release-debuginfo --debug-swift # Swift frontend built in debug
151+
swift/utils/build-script --release-debuginfo --debug-swift-stdlib # Standard library built in debug
152+
swift/utils/build-script --release-debuginfo --debug-swift --force-optimized-typechecker # Swift frontend sans type checker built in debug
153153

154154
Limiting the amount of debug code in the compiler has a very large impact on
155155
Swift compile times, and in turn the test execution time. If you want to build
156156
the entire project in debug, you can run:
157157

158-
utils/build-script --debug
158+
swift/utils/build-script --debug
159159

160160
For documentation of all available arguments, as well as additional usage
161161
information, see the inline help:
162162

163-
utils/build-script -h
163+
swift/utils/build-script -h
164164

165165
#### Xcode
166166

@@ -223,7 +223,7 @@ script is used by swift.org's CI to produce snapshots and can allow for one to
223223
locally reproduce such builds for development or distribution purposes. E.x.:
224224

225225
```
226-
$ ./utils/build-toolchain $BUNDLE_PREFIX
226+
$ ./swift/utils/build-toolchain $BUNDLE_PREFIX
227227
```
228228

229229
where ``$BUNDLE_PREFIX`` is a string that will be prepended to the build

branches/rxwei-patch-1/apinotes/Accelerate.apinotes

Lines changed: 0 additions & 61 deletions
This file was deleted.

branches/rxwei-patch-1/apinotes/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
set(sources
2-
Accelerate.apinotes
32
Dispatch.apinotes
4-
ScriptingBridge.apinotes
53
os.apinotes
64
)
75

branches/rxwei-patch-1/apinotes/ScriptingBridge.apinotes

Lines changed: 0 additions & 5 deletions
This file was deleted.

branches/rxwei-patch-1/benchmark/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ set(SWIFT_BENCH_MODULES
108108
single-source/NSError
109109
single-source/NSStringConversion
110110
single-source/NibbleSort
111+
single-source/NIOChannelPipeline
111112
single-source/NopDeinit
112113
single-source/ObjectAllocation
113114
single-source/ObjectiveCBridging

0 commit comments

Comments
 (0)