Skip to content

Merging swift-DEVELOPMENT-SNAPSHOT-2019-06-17-a into tensorflow #25599

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 347 commits into from
Jun 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
347 commits
Select commit Hold shift + click to select a range
6cdb147
Printing tweaks
Jun 11, 2019
6b6c983
Fix scope test
Jun 11, 2019
2d0a8f2
Passes either way
Jun 11, 2019
6cfcabd
add -disable-parser-lookup
Jun 11, 2019
a80fa91
[ConstraintSystem] Use lightweight conformance check in determining w…
xedin Jun 11, 2019
b4998fb
[SDK] Modernize array initialization pattern in ModelIO overlay
lorentey Jun 11, 2019
4c91a3e
test: make StdlibUnittest.CrashingTests pass on Windows
compnerd Jun 11, 2019
27eefd7
[os_log][SIL Optimization] Make new os log APIs @_transparent and
ravikandhadai May 22, 2019
7d4f15f
test: repair SILGen.literals on Windows
compnerd Jun 11, 2019
4d4609a
[os_log][SIL Optimization] Modify the OSLogOptimization pass to run
ravikandhadai May 22, 2019
62193c9
[CodeCompletion] Enable type completion at beginning of attribute
rintaro Apr 17, 2019
b31c142
[CodeCompletion] Implement completion at custom attribute argument
rintaro Apr 18, 2019
1e4f5f7
Add @functionBuilder and check its applications to parameters.
rjmccall Apr 16, 2019
15e7fa0
Ignore unresolvable custom attributes in the function-builder checker.
rjmccall Apr 16, 2019
e1b6386
Add an unused request for getting the type of a custom attribute.
rjmccall Apr 16, 2019
93b3320
Make getFunctionBuilderType() return a Type.
rjmccall Apr 16, 2019
2268939
Underscore _functionBuilder.
rjmccall Apr 17, 2019
0078422
Rework the requests for getting a parameter's function-builder type.
rjmccall Apr 17, 2019
0494574
Factor the computation of default arguments into ParameterListInfo.
DougGregor Apr 16, 2019
a4301cc
[Type checker] Transform multi-statement closures via function builders.
DougGregor Apr 17, 2019
6a3739a
Ensure that we use the right closure context for constraint generation.
DougGregor Apr 17, 2019
ffd1601
[DSL] Allow function builders to opt in to "do" support via buildDo().
DougGregor Apr 17, 2019
c98f017
[DSL] Allow function builders to opt in to "if" statements.
DougGregor Apr 17, 2019
ac47c9d
[Function builders] Diagnose unhandled closure constructs within the …
DougGregor Apr 18, 2019
b634f59
[Function builders] Create a FailureDiagnostic for unhandled constructs.
DougGregor Apr 18, 2019
f2db407
[Type checker] Collapse some duplicate code. Thanks, Pavel!
DougGregor Apr 18, 2019
b7bbf4c
[Function builders] Allow uses of generic function builders.
DougGregor Apr 23, 2019
fa461a7
[Function builders] Add AST walker support for custom attributes on p…
DougGregor Apr 23, 2019
50fe8e2
[AST Printing] Print custom attributes on parameters.
DougGregor Apr 26, 2019
04ca975
[CodeCompletion] Enable type name completion for param decl attribute
rintaro Apr 25, 2019
5cc5b93
[SourceKit] Function builder: Add cursor-info test cases
rintaro Apr 24, 2019
06e8483
[IDE] Function builder: add syntax coloring test for custom attribute
rintaro Apr 25, 2019
648a76e
[CodeCompletion] Add basic test cases inside builder closure
rintaro Apr 25, 2019
992c752
[CodeCompletion] Function builder: add test case for attribute at params
rintaro Apr 25, 2019
1c2c5c5
[placeholder-expansion] Function builder: add basic expansion test
rintaro Apr 26, 2019
25bfdb6
[CodeCompletion] Function builder: test case with context types in bu…
rintaro Apr 27, 2019
7475bcd
[Function builders] Prescan closure bodies for a 'return' statement.
DougGregor Apr 29, 2019
83b5b2f
Support if-else chains on function builders.
rjmccall Apr 30, 2019
5d0d8d9
[Constraint solver] Capture/roll back type mappings generated while s…
DougGregor Apr 19, 2019
952eb9d
Allow function-builder attributes on funcs and computed vars.
rjmccall May 7, 2019
999d98a
Fix treatment of single-line getters with function builders.
rjmccall May 8, 2019
a183f76
Address review feedback on the function-builders-on-funcs/vars patch.
rjmccall May 8, 2019
2594de6
[Type checker] Don't re-insert node types when merging solutions.
DougGregor May 17, 2019
e08f1fb
[DSL] Clean up assignment of types to synthesized TypeExprs.
DougGregor May 17, 2019
cf0a50b
Remove restriction that @functionBuilders have to be uppercased;
rjmccall Jun 5, 2019
990ded6
Merge fix: IBSegueAction apparently comes last in this list.
rjmccall Jun 6, 2019
2aa0a71
[Sema] Bail early in exportability checker if there's no extended type
Jun 12, 2019
b4cdbc0
Move the core builder-transform logic into its own file.
rjmccall Jun 12, 2019
1a23a75
Merge pull request #25372 from compnerd/64-bits-should-be-enough-for-…
compnerd Jun 12, 2019
2df3652
Provide a default implementation of multipliedFullWidth (#25346)
stephentyrone Jun 12, 2019
e65dfc8
Merge pull request #25221 from rjmccall/function-builders
rjmccall Jun 12, 2019
69f6b41
Use unique_ptr for Scope, getScope returns a reference
Jun 12, 2019
884648d
invariant
Jun 12, 2019
916b217
Outline expandInContext
Jun 12, 2019
21905c1
Rename ASTNode_or_DeclPtr
Jun 12, 2019
9b40b39
Rephrase comment
Jun 12, 2019
55323bb
Typos, etc.
Jun 12, 2019
4122438
Outline lookInGenericsAndSelfType
Jun 12, 2019
b418588
Fix
Jun 12, 2019
5a2fd74
Merge pull request #23303 from drodriguez/cmake-options-improvements
drodriguez Jun 12, 2019
ba6a5e1
[ConstraintSystem] Replace special locator for return of single expr …
xedin Jun 12, 2019
ba412a9
Merge pull request #25348 from xedin/rdar-50007727
xedin Jun 12, 2019
6575a92
[cfg] Make the docs for splitBasicBlockAndBranch clearer.
gottesmm Jun 12, 2019
5244805
[SE-0258] Clean up memberwise initializer / default-initialization in…
DougGregor Jun 12, 2019
16ca723
Explain source ranges
Jun 12, 2019
2f2bbfb
Better method scope lookup
Jun 12, 2019
c966010
swift-api-digester: remove some unused code. NFC
nkcsgexi May 31, 2019
d405fcd
swift-api-digester: teach the tool to directly compare two module int…
nkcsgexi Jun 1, 2019
9039a40
Merge pull request #25385 from gottesmm/pr-ddab2b9f2264a250da17fb610a…
swift-ci Jun 12, 2019
0a1b18f
[SE-0258] Clean up memberwise initializer / default-initialization in…
DougGregor Jun 12, 2019
c36683f
[SE-0258] Add @propertyDelegate and @propertyWrapper aliases
DougGregor Jun 12, 2019
1e0e671
[SE-0258] Warn about (but still use) 'delegateValue' in lieu of 'wrap…
DougGregor Jun 12, 2019
6a2123f
Merge pull request #25364 from lorentey/ModelIO-arrays
lorentey Jun 12, 2019
279df1b
rth: change the working directory on Windows
compnerd Jun 12, 2019
ef1fc19
rth: quote the commandline properly on Windows (NFC)
compnerd Jun 12, 2019
72b2096
Outer generics
Jun 12, 2019
3e95844
Clean up
Jun 12, 2019
8988fa9
Added fixmes
Jun 12, 2019
512ddff
Merge pull request #25248 from nkcsgexi/api-digester-clean
nkcsgexi Jun 12, 2019
69c05c0
Merge pull request #25386 from DougGregor/property-wrappers-memberwis…
swift-ci Jun 12, 2019
2e8d9a4
[SE-0258] Adopt @propertyWrapper everywhere.
DougGregor Jun 12, 2019
2e9c904
[mandatory-inlining] Teach mandatory inlining how to handle begin_bor…
gottesmm Jun 11, 2019
02ba2d3
Merge pull request #25373 from harlanhaskins/extensify
Jun 12, 2019
9e901eb
test: fix the path separator for Evolution.test_rth
compnerd Jun 12, 2019
b22ddf0
Update README.md
compnerd Jun 12, 2019
aa4d875
Merge pull request #25389 from compnerd/runtime-paths-are-changed
swift-ci Jun 12, 2019
72e9454
Merge pull request #25397 from apple/compnerd-linux-is-not-bsd
shahmishal Jun 12, 2019
d878aed
Merge pull request #25393 from DougGregor/property-wrapper-attr-rename
swift-ci Jun 12, 2019
6f6a772
implicit checks
Jun 12, 2019
8d1d863
[Definite Initialization] Fix a bug that made the DI wrongly think
ravikandhadai Jun 12, 2019
1980c4a
Disallow `dynamic` on native Swift declarations under library-evoluti…
aschwaighofer Jun 12, 2019
75ff621
SimplifyCFG: fix a compile time bug from exponential jump threading.
atrick Jun 12, 2019
57666fd
Merge pull request #25388 from compnerd/based-on-name
swift-ci Jun 12, 2019
967313a
Merge pull request #25394 from gottesmm/pr-71cba30fd46063a4bd73a92222…
gottesmm Jun 12, 2019
9a30b16
Update README.md
compnerd Jun 12, 2019
127b2ab
Remove the remaining swift_test_mode_optimize_none_with_implicit_dynamic
aschwaighofer Jun 12, 2019
15dd4fe
[SILInliner] Set the correct scope for {begin,end}_borrow.
Jun 12, 2019
735a884
Merge pull request #25383 from xedin/rdar-51641323
xedin Jun 12, 2019
0216e3b
[Type checker] Compute correct contextual substitutions for local gen…
DougGregor Jun 12, 2019
aef60e6
[sil] Add an overload to SILDebugScope::dump that just takes a SILMod…
gottesmm Jun 12, 2019
9c5061d
[mandatory-inlining] When running with sil-verify-all, verify at the …
gottesmm Jun 12, 2019
40cd518
Rm doISplitAScope for visitBraceStmt
Jun 12, 2019
a0463a8
Remove a workaround in the debug info handling of zero-sized types.
adrian-prantl Jun 12, 2019
fdb6e08
Merge pull request #25405 from apple/compnerd-running-around-the-block
shahmishal Jun 12, 2019
ea978d9
[api_checker/infer-imports.py] Look for Swift-only frameworks as well
akyrtzi Jun 12, 2019
2509f50
Syntax: introduce a token kind for single quote to preserve round-tri…
nkcsgexi Jun 13, 2019
7890524
AST: Fix type reconstruction for @convention(c) function types
slavapestov Jun 12, 2019
ff3d081
Merge pull request #25403 from ravikandhadai/rdar51198592-DI-crash
ravikandhadai Jun 13, 2019
12e01d1
[ClangImporter] Fix macOS app extension deprecated-as-unavailable che…
jrose-apple Jun 13, 2019
126f024
Merge pull request #25410 from DougGregor/local-subs-sr9954
swift-ci Jun 13, 2019
5262984
Merge pull request #25411 from gottesmm/pr-c57a5064f194848a7020f1d609…
gottesmm Jun 13, 2019
198e8d1
AST: Introduce a new debug-only mangling for @escaping @convention(bl…
slavapestov Jun 13, 2019
aad6fad
Merge pull request #25413 from nkcsgexi/allow-single-quote
nkcsgexi Jun 13, 2019
9bbcd55
Merge pull request #25396 from akyrtzi/infer-imports-swift-frameworks
nkcsgexi Jun 13, 2019
40c9851
Merge pull request #25366 from compnerd/order-independence
compnerd Jun 13, 2019
8677068
Merge pull request #25420 from slavapestov/the-right-type-escapes-me
slavapestov Jun 13, 2019
44c6248
Rm redundant computeSelfDCForParemt
Jun 13, 2019
27712eb
Update update-checkout config to support swift-5.1-branch-06-12-2019
shahmishal Jun 13, 2019
729ad65
AST: Remove VarDecl::isREPLVar()
slavapestov Jun 13, 2019
ae4de47
Sema: Correctly mark backing storage for lazy properties and property…
slavapestov Jun 13, 2019
4a8e3fc
AST: Add VarDecl::isLazyStorageProperty() and set it
slavapestov Jun 13, 2019
59bc60e
[ConstraintSystem] Don't track captures if solver was in diagnostic mode
xedin Jun 13, 2019
95c221a
Sema: Replace makeFinal() calls in favor of smarter IsFinalRequest
slavapestov Jun 13, 2019
a22b4f7
Merge pull request #25406 from aschwaighofer/enable_remaining_implici…
aschwaighofer Jun 13, 2019
cfee5f3
Address review
aschwaighofer Jun 13, 2019
2dc61c5
Fix typo in diagnostic
aschwaighofer Jun 13, 2019
26d0324
[CSApply] Don't try to transform editor placeholder if it's type is i…
xedin Jun 13, 2019
af986a2
Test requires objc_interop
aschwaighofer Jun 13, 2019
a480404
[ModuleInterface] Qualify all types in module interfaces
Jun 13, 2019
889e430
[ModuleInterface] Allow falling back to prefer TypeReprs
Jun 13, 2019
57f5173
Rename flag to ‘module-interface-preserve-types-as-written’
Jun 13, 2019
f02bac3
Add new flag to XCTest overlay
Jun 13, 2019
50358b2
cosmetic
Jun 13, 2019
6d3e3f0
Merge pull request #24971 from ravikandhadai/oslog-optimization-trans…
ravikandhadai Jun 13, 2019
06c958e
swift-api-checker: teach the script to collect Swift only frameworks …
nkcsgexi Jun 12, 2019
8e14cc5
[test/DebugInfo] Add a missing REQUIRES and availability macro.
Jun 13, 2019
af0c3f8
Use -enable-objc-interop instead of REQUIRES: objc_interop
aschwaighofer Jun 13, 2019
d3785d9
Merge pull request #25434 from nkcsgexi/infer-module-swift-only
nkcsgexi Jun 13, 2019
0f1837c
[SILInliner] Also pass a SILBuilderContext.
Jun 13, 2019
28d1fb6
Android Mac Cross-compile: Fixes issue "ld.gold: error: cannot find -…
vgorloff Jun 13, 2019
90f6363
Merge pull request #25426 from slavapestov/final-request-cleanup
slavapestov Jun 13, 2019
342b527
Sema: Clean up IsDynamicRequest a bit
slavapestov Jun 13, 2019
6605d56
Merge pull request #25431 from xedin/rdar-48937223
xedin Jun 13, 2019
7c1ab33
Merge pull request #25407 from dcci/rdar51512044
dcci Jun 13, 2019
dcda278
[SDK] Add overlay shims for ClockKit framework
lorentey Jun 14, 2019
ce712db
Sema: Bail out early from checkOverrideAccessControl() if we have pro…
slavapestov Jun 13, 2019
d7db48f
AST: Decl::isPotentiallyOverridable() returns false for protocol requ…
slavapestov Jun 13, 2019
5a3761d
[Sema] Stop filtering nested protocol types from lookup
Jun 14, 2019
e61bc4e
[TSan] Disable flaky test to unblock CI
yln Jun 14, 2019
82ed5e9
[SE-0258] Implement basic support for property wrapper composition.
DougGregor Jun 14, 2019
cba7a55
Merge pull request #25448 from apple/disable-tsan-libdispatch-test
benlangmuir Jun 14, 2019
3ef69d2
[TSan] Remove usage of obsolete flag in tests
yln Jun 14, 2019
051d08b
Merge pull request #25440 from vgorloff/macos-to-android-crosscompile
drodriguez Jun 14, 2019
a21e77b
Merge pull request #25404 from atrick/fix-simplifycfg-hang
atrick Jun 14, 2019
acc3a52
build: skip tool information when not building the tools
compnerd Jun 14, 2019
8ae7634
[Foundation] Set correct availability on NSValue.value(of:)
lorentey Jun 14, 2019
c2772f1
build: permit cross-compiling android from Windows
compnerd Jun 14, 2019
18768ec
Merge pull request #25449 from DougGregor/property-wrapper-composition
DougGregor Jun 14, 2019
a813fad
Merge pull request #25453 from compnerd/tool-free-builds
swift-ci Jun 14, 2019
9993124
Merge pull request #25445 from slavapestov/testable-protocol-override
slavapestov Jun 14, 2019
629766e
Merge pull request #25439 from slavapestov/dynamic-request-cleanup
slavapestov Jun 14, 2019
096d32b
Merge pull request #25412 from gottesmm/pr-e50b660a602a20338a4dc4bb54…
gottesmm Jun 14, 2019
320dd89
typo
Jun 14, 2019
166a6b8
[SE-0258] Clean up some code repetition involving initialization forms.
DougGregor Jun 14, 2019
e857852
[SE-0258] Rewrite findOriginalPropertyWrapperInitialValue() for compo…
DougGregor Jun 14, 2019
bee99a3
build: spell parameter `-fuse-ld=` properly for Windows
compnerd Jun 14, 2019
8cc7f09
[SE-0258] More tests and hardening for property wrapper composition
DougGregor Jun 14, 2019
99b40ba
[SE-0258] Rename 'value' to 'wrappedValue'.
DougGregor Jun 14, 2019
0ddd668
Merge pull request #25455 from compnerd/build-on-windows
compnerd Jun 14, 2019
5befea4
build: query the resource dir when needed
compnerd Jun 14, 2019
0c20230
Merge pull request #25457 from DougGregor/property-wrapper-compositio…
swift-ci Jun 14, 2019
93aed56
Merge pull request #25458 from DougGregor/property-wrapper-wrapped-va…
swift-ci Jun 14, 2019
d35e1ea
[SE-0258] Support initial values & explicit initialization arguments.
DougGregor Jun 14, 2019
99d42c4
[SE-0258] Add a Fix-It for the value -> wrappedValue rename.
DougGregor Jun 14, 2019
f2d0c9c
Merge pull request #25464 from DougGregor/property-wrapper-initial-va…
swift-ci Jun 14, 2019
06527db
Merge pull request #24594 from davidungar/A5-7-ASTOOScope-rebased
Jun 14, 2019
d2e85fa
Merge pull request #25459 from compnerd/what-is-an-executable
compnerd Jun 14, 2019
caabba5
Merge pull request #25435 from adrian-prantl/51343998
adrian-prantl Jun 14, 2019
605a92c
Merge pull request #25402 from aschwaighofer/disallow_native_dynamic_…
aschwaighofer Jun 14, 2019
7719b0f
Sema: Add a more descriptive diagnostic for generic argument mismatches
sl May 18, 2019
dc5ccd1
Test: Add tests for the new generic arguments mismatch diagnostic
sl May 25, 2019
81dc546
Sema / Test: Fix tests broken by introduction of GenericArgumentsMism…
sl May 28, 2019
1701ea1
Sema: Changed GenericArgumentsMismatch to use trailing objects
sl Jun 10, 2019
de7851b
Test: Update tests to reflect change to generic mismatch note locations
sl Jun 11, 2019
0a7cdb8
Sema: Handle CTP_SubscripAssignSource in GenericArgumentsMismatch::ge…
sl Jun 11, 2019
cc8c2b1
Sema: Fix how matchDeepEqualityType failures are handled
sl Jun 13, 2019
122a68c
Sema: Change generic argument mismatch diags to reuse existing ones
sl Jun 13, 2019
cd0cc3c
Test: Add a todo about a regression introduced by generic mismatch di…
sl Jun 13, 2019
64b1186
Sema: Change closure passed to matchDeepTypeArguments to return if it…
sl Jun 13, 2019
2cefbe0
Test: Update additional tests with improved generic mismatch diagnostic
sl Jun 13, 2019
ff950a4
Sema: Refactor logic for excluding arrays / optionals out of closure
sl Jun 14, 2019
b1b0c69
Merge pull request #25460 from compnerd/you-must-mine-more-vespene-gas
compnerd Jun 14, 2019
7933a9c
Merge pull request #25450 from apple/remove-obsolete-tsan-flag
yln Jun 14, 2019
c5e9fc2
[cast-optimizer] Fix a leak in the cast optimizer when we perform loa…
gottesmm Jun 13, 2019
c1c5ee9
build: use `LINKER_LANGUAGE` to control linking on Android
compnerd Jun 14, 2019
36b917b
[SILInliner] Inherit SILBuilderContext when creating a new one.
Jun 14, 2019
a200911
Temporarily disable validation-test/stdlib/ModelIO.swift
benlangmuir Jun 14, 2019
c1e4a9c
Merge pull request #25390 from compnerd/double-double
compnerd Jun 14, 2019
0150ae5
Update WindowsBuild.md
compnerd Jun 14, 2019
6b87e97
[Driver] Bump the required Apple SDK versions to the 2019 OSs (#25469)
jrose-apple Jun 14, 2019
1160017
[SE-0258] Escalate access of wrapperValue-produced $x to internal.
DougGregor Jun 14, 2019
2397dea
Merge pull request #25060 from sl/generic-arguments-mismatch-diagnostic
sl Jun 14, 2019
0c555ed
SILGen: Map dynamic self out of context when mangling reabstraction t…
jckarter Jun 14, 2019
a03cb96
Merge pull request #24614 from adrian-prantl/lldb-moduleimport
adrian-prantl Jun 14, 2019
60a844e
Merge pull request #25478 from DougGregor/wrapper-value-internal
DougGregor Jun 14, 2019
047749a
Merge pull request #25419 from harlanhaskins/property-reprs
Jun 14, 2019
4eb0ca0
build: do not implicitly track build dependencies for host
compnerd Jun 14, 2019
48e3407
Merge pull request #24904 from GeorgeLyon/master
swift-ci Jun 14, 2019
a516de5
Merge pull request #25477 from apple/compnerd-llbuild
compnerd Jun 14, 2019
f68ce2d
Add missing call to code()
benlangmuir Jun 14, 2019
7ca7e85
Merge pull request #25480 from jckarter/dynamic-self-reabstraction-co…
jckarter Jun 14, 2019
5b22e4b
[TypeChecker] NFC: Add a test-case for rdar://problem/50512161
xedin Jun 14, 2019
9575a6e
[CastOptimizer] Set the correct debug scope for the SILBuilder.
Jun 14, 2019
24da27b
AST: Verify that all generic signatures can be re-built from their re…
slavapestov Jun 14, 2019
b6b0056
Merge pull request #25470 from gottesmm/pr-6fcc994438ac76ad7a3daeb6e8…
gottesmm Jun 14, 2019
276b170
Merge pull request #25474 from benlangmuir/disable-modelio
benlangmuir Jun 14, 2019
b3be8ae
[ASTPrinter] Make sure to print `some` as a keyword
akyrtzi Jun 15, 2019
9feac71
Merge pull request #25487 from compnerd/implicitly-incorrect
compnerd Jun 15, 2019
8839741
Merge pull request #25471 from compnerd/standard-no-standard
compnerd Jun 15, 2019
af54147
Merge pull request #25472 from dcci/silbuilder-inherit
dcci Jun 15, 2019
5ef3df7
build: link to ICU by full path on Android
compnerd Jun 14, 2019
c4adb9b
Merge pull request #25490 from dcci/rdar48887384
dcci Jun 15, 2019
cc51106
Merge pull request #25491 from compnerd/absolutely-correct
swift-ci Jun 15, 2019
1710d08
Merge pull request #25492 from slavapestov/verify-signatures-better
slavapestov Jun 15, 2019
77a642a
Merge pull request #25489 from xedin/rdar-50512161
xedin Jun 15, 2019
a105bcb
Merge pull request #25497 from akyrtzi/print-some-as-keyword
akyrtzi Jun 15, 2019
ec73c3b
test: make NameBinding.scope_map* pass on Windows
compnerd Jun 15, 2019
ee6688d
Merge pull request #25501 from compnerd/better-fitting
swift-ci Jun 15, 2019
ec3678c
swift-api-digester: teach the tool to compare two SDKs directly
nkcsgexi Jun 16, 2019
63c229b
build: do not touch `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`
compnerd Jun 16, 2019
1db3865
build: dereference the SDK name variable
compnerd Jun 16, 2019
f19f664
Merge pull request #25511 from compnerd/bionic-vs-glibc
swift-ci Jun 17, 2019
3ac3ff0
Revert " [CastOptimizer] Set the correct debug scope for the SILBuild…
benlangmuir Jun 17, 2019
45974e2
Disable tsan-norace-deinit-run-time.swift temporarily
benlangmuir Jun 17, 2019
e006112
Merge pull request #25513 from benlangmuir/disable-tsan-test
benlangmuir Jun 17, 2019
e156713
Merge pull request #25512 from apple/revert-25490-rdar48887384
benlangmuir Jun 17, 2019
12ee5d3
[CastOptimizer] Set the correct debug scope for the SILBuilder.
Jun 17, 2019
3b5e872
Merge pull request #25508 from compnerd/empowering-people
swift-ci Jun 17, 2019
43bb5e4
swift_build_sdk_interfaces.py: builds compiled modules from an SDK (#…
jrose-apple Jun 17, 2019
6370681
Android cross-compile on macOS: Fix for compile error addressed Float…
vgorloff Jun 17, 2019
131bee7
Merge pull request #25515 from dcci/amend-and-amend
swift-ci Jun 17, 2019
308d584
Merge pull request #25444 from lorentey/ClockKit-overlay
lorentey Jun 17, 2019
194dba6
Merge pull request #25454 from lorentey/nsvalue-availability
lorentey Jun 17, 2019
b105277
test: add a mock Swift framework into the ABI checker test suite
nkcsgexi Jun 17, 2019
ad93463
Shims: support `clang-cl` for building the runtime for Windows
compnerd Jun 17, 2019
2330d81
Merge pull request #25519 from compnerd/windows-resource-dir
swift-ci Jun 17, 2019
e4e009f
Merge pull request #25506 from nkcsgexi/baseline-sdk
nkcsgexi Jun 17, 2019
b448128
Merging swift-DEVELOPMENT-SNAPSHOT-2019-06-17-a into tensorflow
Jun 18, 2019
44c18f8
Update dependencies to new snapshot version 'swift-DEVELOPMENT-SNAPSH…
Jun 18, 2019
ca81f31
Fix merge errors and test failures
Jun 18, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 11 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -862,14 +862,18 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT CMAKE_CROSSCOMPILING)
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
endif()

message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
message(STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO}")
message(STATUS "")

if (SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
if(SWIFT_INCLUDE_TOOLS)
message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
message(STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO}")
message(STATUS "")
else()
message(STATUS "Not building host Swift tools")
message(STATUS "")
endif()

if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
message(STATUS "Building Swift standard library and overlays for SDKs: ${SWIFT_SDKS}")
message(STATUS " Build type: ${SWIFT_STDLIB_BUILD_TYPE}")
message(STATUS " Assertions: ${SWIFT_STDLIB_ASSERTIONS}")
Expand All @@ -878,12 +882,9 @@ if (SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
message(STATUS "Building Swift runtime with:")
message(STATUS " Leak Detection Checker Entrypoints: ${SWIFT_RUNTIME_ENABLE_LEAK_CHECKER}")
message(STATUS "")

else()

message(STATUS "Not building Swift standard library, SDK overlays, and runtime")
message(STATUS "")

endif()

#
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Additionally, [Bazel](https://www.bazel.build) between v0.24.1 and v0.25.2 (incl

For Ubuntu, you'll need the following development dependencies:

sudo apt-get install git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync
sudo apt-get install git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync

Additionally, [Bazel](https://www.bazel.build) between v0.24.1 and v0.25.2 (inclusive) is required to build with TensorFlow support. Ubuntu installation instructions can be found [below](#bazel).

Expand Down
39 changes: 30 additions & 9 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ function(_add_variant_link_flags)
list(APPEND link_libraries "bsd" "atomic")
list(APPEND result "-Wl,-Bsymbolic")
elseif("${LFLAGS_SDK}" STREQUAL "ANDROID")
list(APPEND link_libraries "dl" "log" "atomic" "icudataswift" "icui18nswift" "icuucswift")
# We provide our own C++ below, so we ask the linker not to do it. However,
# we need to add the math library, which is linked implicitly by libc++.
list(APPEND result "-nostdlib++" "-lm")
list(APPEND link_libraries "dl" "log" "atomic")
# We need to add the math library, which is linked implicitly by libc++
list(APPEND result "-lm")

if("${LFLAGS_ARCH}" MATCHES armv7)
set(android_libcxx_path "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a")
elseif("${LFLAGS_ARCH}" MATCHES aarch64)
Expand All @@ -477,8 +477,17 @@ function(_add_variant_link_flags)
else()
message(SEND_ERROR "unknown architecture (${LFLAGS_ARCH}) for android")
endif()
list(APPEND link_libraries "${android_libcxx_path}/libc++abi.a")
list(APPEND link_libraries "${android_libcxx_path}/libc++_shared.so")

# link against the custom C++ library
list(APPEND link_libraries
${android_libcxx_path}/libc++abi.a
${android_libcxx_path}/libc++_shared.so)

# link against the ICU libraries
list(APPEND link_libraries
${SWIFT_ANDROID_${LFLAGS_ARCH}_ICU_I18N}
${SWIFT_ANDROID_${LFLAGS_ARCH}_ICU_UC})

swift_android_lib_for_arch(${LFLAGS_ARCH} ${LFLAGS_ARCH}_LIB)
foreach(path IN LISTS ${LFLAGS_ARCH}_LIB)
list(APPEND library_search_directories ${path})
Expand Down Expand Up @@ -517,8 +526,12 @@ function(_add_variant_link_flags)
NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WINDOWS"))
list(APPEND result "-fuse-ld=lld")
elseif(SWIFT_ENABLE_GOLD_LINKER AND
"${SWIFT_SDK_${LFLAGS_SDK}_OBJECT_FORMAT}" STREQUAL "ELF")
list(APPEND result "-fuse-ld=gold")
"${SWIFT_SDK_${LFLAGS_SDK}_OBJECT_FORMAT}" STREQUAL "ELF")
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
list(APPEND result "-fuse-ld=gold.exe")
else()
list(APPEND result "-fuse-ld=gold")
endif()
endif()
endif()

Expand Down Expand Up @@ -1400,8 +1413,16 @@ function(_add_swift_library_single target name)
${SWIFTLIB_SINGLE_PRIVATE_LINK_LIBRARIES})
endif()

set_property(TARGET "${target}" PROPERTY
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
# `clang++` as we explicitly link against the C++ runtime. We were previously
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
if(SWIFTLIB_SINGLE_SDK STREQUAL ANDROID)
set_property(TARGET "${target}" PROPERTY
LINKER_LANGUAGE "C")
else()
set_property(TARGET "${target}" PROPERTY
LINKER_LANGUAGE "CXX")
endif()

if(target_static)
set_property(TARGET "${target_static}" APPEND_STRING PROPERTY
Expand Down
14 changes: 9 additions & 5 deletions cmake/modules/SwiftConfigureSDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function(_report_sdk prefix)
message(STATUS " ${arch} LIB: ${${arch}_LIB}")
endforeach()
elseif("${prefix}" STREQUAL "ANDROID")
message(STATUS " NDK Dir: $ENV{SWIFT_ANDROID_NDK_PATH}")
message(STATUS " NDK: $ENV{SWIFT_ANDROID_NDK_PATH}")
foreach(arch ${SWIFT_SDK_${prefix}_ARCHITECTURES})
swift_android_include_for_arch(${arch} ${arch}_INCLUDE)
swift_android_lib_for_arch(${arch} ${arch}_LIB)
Expand Down Expand Up @@ -225,10 +225,14 @@ macro(configure_sdk_unix name architectures)
endif()

# Get the prebuilt suffix to create the correct toolchain path when using the NDK
if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin")
set(_swift_android_prebuilt_build "darwin-x86_64")
elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux")
set(_swift_android_prebuilt_build "linux-x86_64")
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin)
set(_swift_android_prebuilt_build darwin-x86_64)
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL Linux)
set(_swift_android_prebuilt_build linux-x86_64)
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
set(_swift_android_prebuilt_build Windows-x86_64)
else()
message(SEND_ERROR "cannot cross-compile to android from ${CMAKE_HOST_SYSTEM_NAME}")
endif()
if("${arch}" STREQUAL "i686")
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH
Expand Down
1 change: 1 addition & 0 deletions docs/ABI/Mangling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ Types
FUNCTION-KIND ::= 'U' // uncurried function type (currently not used)
FUNCTION-KIND ::= 'K' // @auto_closure function type (noescape)
FUNCTION-KIND ::= 'B' // objc block function type
FUNCTION-KIND ::= 'L' // objc block function type (escaping) (DWARF only; otherwise use 'B')
FUNCTION-KIND ::= 'C' // C function pointer type
FUNCTION-KIND ::= 'A' // @auto_closure function type (escaping)
FUNCTION-KIND ::= 'E' // function type (noescape)
Expand Down
4 changes: 2 additions & 2 deletions docs/WindowsBuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ cmake -G Ninja^
-DFOUNDATION_BUILD_DIR=S:\b\foundation^
-DLIBDISPATCH_BUILD_DIR=S:\b\libdispatch^
-DLIBDISPATCH_SOURCE_DIR=S:\swift-corelibs-libdispatch^
-DLLBUILD_PATH_TO_SQLITE_SOURCE=S:\sqlite-amalgamation-3270200^
-DLLBUILD_PATH_TO_SQLITE_BUILD=S:\b\sqlite^
-DSQLite3_INCLUDE_DIR=S:\sqlite-amalgamation-3270200^
-DSQLite3_LIBRARY=S:\b\sqlite\sqlite3.lib^
-DLLBUILD_SUPPORT_BINDINGS=Swift^
S:\llbuild
ninja
Expand Down
Loading