Skip to content

Merge 2020-06-30 into tensorflow #32623

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 271 commits into from
Jul 3, 2020
Merged
Changes from 2 commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
c8ead6d
[TypeChecker] NFC: Remove obsolete `getObjectLiteralParameterType`
xedin Jun 19, 2020
02bc2c6
[TypeChecker] NFC: Adjust object literal test-case for iOS
xedin Jun 22, 2020
c690ac8
[AutoDiff] Improve invalid stored property projection diagnostics.
dan-zheng Jun 22, 2020
b9476ce
build: correct handling of argument generation
compnerd Jun 19, 2020
8c8360b
Move 'MetadataSections' from 'ImageInspectionElf.h' to SwiftShims
augusto2112 Jun 22, 2020
4cd754e
[DepScan] NFC: Remove check for OnoneSupport
hamishknight Jun 22, 2020
6d0c34c
[Runtime] Add entry point to compare conformance descriptors.
nate-chandler Jun 19, 2020
272c466
Update master to build with Xcode 12 beta
shahmishal Jun 20, 2020
da242bd
[SDK] Remove obsolete overlay code
lorentey Jun 22, 2020
279c723
[README] Update the Xcode version.
shahmishal Jun 22, 2020
3820568
[android] Set linux-androideabi (Android ARM 32 bits) as ABI stable d…
drodriguez Jun 22, 2020
0717ba4
Merge pull request #32497 from dan-zheng/autodiff-tangent-stored-prop…
dan-zheng Jun 22, 2020
79c38b2
Merge pull request #32501 from hamishknight/scan-none
hamishknight Jun 23, 2020
3530f8e
[ownership] Split ownership lowering in the pass pipeline for non-tra…
gottesmm Jun 23, 2020
236237f
Merge pull request #32471 from nate-chandler/runtime/add-swift_compar…
swift-ci Jun 23, 2020
a5f0069
[metadata prespecialization] Check conformances.
nate-chandler Jun 20, 2020
05de54f
ExplicitModules: use key names conforming to Swift naming convention …
nkcsgexi Jun 23, 2020
15dfa83
Merge pull request #32495 from eeckstein/cmo-improvements
eeckstein Jun 23, 2020
da23205
Merge pull request #32504 from drodriguez/android-eabi-as-abi-stable
compnerd Jun 23, 2020
451fd09
Merge pull request #32499 from compnerd/no-more-arguing
compnerd Jun 23, 2020
f77e794
test: make `binary_sub` python 2, 3 compatible
compnerd Jun 22, 2020
24003e6
utils: update `remote-run` for Python 3 compatibility
compnerd Jun 22, 2020
f9951b3
Merge pull request #32507 from nkcsgexi/swift-name-convention
nkcsgexi Jun 23, 2020
52d11fd
Remove comment in TestData.swift
shahmishal Jun 23, 2020
ace20bd
Remove comment in TestData.swift
shahmishal Jun 23, 2020
63235bb
Remove unsupported iosmac from attractive_objc_reilience.swift
shahmishal Jun 23, 2020
f32c311
Remove unsupported iosmac from nscoding.swift
shahmishal Jun 23, 2020
0da060e
Merge pull request #32447 from martinboehme/option-set-initializer-list
CodaFi Jun 23, 2020
890f670
Merge pull request #32481 from xedin/rework-object-literal-typechecking
xedin Jun 23, 2020
493a4a2
Merge pull request #32502 from apple/update-master-xcode-12-beta
shahmishal Jun 23, 2020
f71f620
[CMake] Make swift-frontend the primary Swift binary.
DougGregor Oct 31, 2019
ade21a3
Fix build of benchmark suite and Linux test
DougGregor Nov 1, 2019
6c0d957
[Driver] Execute the frontend when invoked via swift-frontend.
DougGregor Nov 1, 2019
bd95fcb
[Test] Fix a test for Windows
DougGregor Jun 16, 2020
bb2d6c5
Install swift-frontend executable
DougGregor Jun 16, 2020
480c631
Linux-specific fixes for the swift-frontend rename.
DougGregor Jun 19, 2020
49dfa8f
[Frontend rename] Fix another Linux test
DougGregor Jun 19, 2020
9c4a189
Disable test on Windows where we don't have symlinks
DougGregor Jun 19, 2020
436d475
[SourceKit/Indentation] Fix over-indent after function declaration wi…
Jun 23, 2020
c5006dd
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 23, 2020
0d6af22
[AutoDiff] Fix tensorflow branch test.
ainu-bot Jun 23, 2020
d49e4a2
[Build] Don't install swift-frontend twice, incorrectly
DougGregor Jun 23, 2020
5b6918f
Merge pull request #32505 from gottesmm/pr-12b4fd6015e37d9a95ea6a81da…
gottesmm Jun 23, 2020
5e5e797
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 23, 2020
b1f29d9
Command line routines for OpenBSD.
3405691582 Jun 23, 2020
571f222
Revert "Revert "[LTO] Build lld on Windows CI""
kateinoigakukun Jun 19, 2020
1725ece
Merge pull request #28003 from DougGregor/swift-frontend-rename
DougGregor Jun 24, 2020
220390f
tests: fix check line in dso_handle test
eeckstein Jun 24, 2020
f50b666
[CodeCompletion] Fallback to nominal member completion after trailing…
rintaro Jun 23, 2020
55517d2
[CMake] Fix unified builds after #28003
davezarzycki Jun 24, 2020
e6fe8d4
Driver: update old doc comments from when clang++ was the linker driver
finagolfin Jun 24, 2020
a0702ce
Merge pull request #32520 from eeckstein/fix-test
eeckstein Jun 24, 2020
00d5839
Merge pull request #32522 from davezarzycki/pr32522
davezarzycki Jun 24, 2020
46c4c2b
Merge pull request #30733 from allevato/rt-inline-ns
compnerd Jun 24, 2020
240ae1b
test: make `make-unreadable` Python 3 friendly
compnerd Jun 23, 2020
081324d
Merge pull request #32521 from rintaro/ide-completion-rdar64650782
rintaro Jun 24, 2020
7bddcb1
Merge pull request #32444 from rintaro/ast-casestmt-parent
rintaro Jun 24, 2020
de8107e
Merge pull request #32482 from nate-chandler/generic-metadata-prespec…
nate-chandler Jun 24, 2020
ecd5041
Merge pull request #32509 from compnerd/binary-is-not-string
compnerd Jun 24, 2020
8af013b
Merge pull request #32510 from compnerd/action-at-a-distance
compnerd Jun 24, 2020
db09c27
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
e45fa71
AST: isEquivalentToExtendedContext() should consider use patterns of …
nkcsgexi Jun 24, 2020
2d250bb
Merge pull request #32395 from 3405691582/Test_OpenBSD_NumericParsing
CodaFi Jun 24, 2020
07226d7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
603ca95
Merge pull request #32513 from nathawes/fix-indentation-after-incompl…
Jun 24, 2020
6cf5d09
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
096777e
[cxx-interop] Do not give the default C++ constructor's return statem…
zoecarver Jun 24, 2020
21b9fc3
[CodeCompletion] Assume non-'isSimpleDidSet' in code completion
rintaro Jun 24, 2020
5549619
[IRGen] Remove an unused DenseMap
DougGregor Jun 24, 2020
6c3a738
[AutoDiff] Remove upstreamed tensorflow branch tests.
ainu-bot Jun 24, 2020
beb75a1
[Test] Disabled remote_run on prespecialized-metadata/struct-multi-co…
nate-chandler Jun 24, 2020
c825d79
Merge pull request #32514 from 3405691582/OpenBSD_CommandLine
CodaFi Jun 24, 2020
d739a6f
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
c4f4ce1
[ConstraintSystem] Record substitutions from opened unbound generic t…
xedin Jun 24, 2020
2a01fc9
[Function builders] Run syntactic diagnostics for function bodies.
DougGregor Jun 24, 2020
bb2bd64
[NFC] Run clang-format over CommandLine.cpp.
3405691582 Jun 24, 2020
570eaf3
[AutoDiff] Fix false `Differentiable` derived conformances warning. (…
dan-zheng Jun 25, 2020
fa259b3
Merge pull request #32535 from DougGregor/garbage-collect-densemap
swift-ci Jun 25, 2020
30e671a
Merge pull request #32528 from rintaro/ide-completion-rdar64699286
rintaro Jun 25, 2020
233ce8e
Make numThreads variable unsigned and remove unneeded numThreads para…
Jun 24, 2020
d96d2db
Merge pull request #32536 from nate-chandler/test/disable-remote-run-…
swift-ci Jun 25, 2020
f8f2e56
[build-presets] Enable stdlib assertions on Linux installations (#32511)
vedantk Jun 25, 2020
0a53c62
Merge pull request #32529 from nkcsgexi/64538537
nkcsgexi Jun 25, 2020
e38d103
Merge pull request #32539 from 3405691582/ClangFormat_CommandLine
swift-ci Jun 25, 2020
46f9f21
[Frontend] Add --version as a frontend flag.
DougGregor Jun 25, 2020
b9d1d6a
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
6a44443
[Diag] Refactor DiagnosticEngine to use `YAML` files - Reopen (#32483)
HassanElDesouky Jun 25, 2020
a69a47e
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
c312143
Merge pull request #32543 from DougGregor/frontend-version-flag
swift-ci Jun 25, 2020
326cb6a
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
f5cf881
Merge pull request #32538 from DougGregor/function-builder-syntactic-…
DougGregor Jun 25, 2020
a509895
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
ee5abde
Merge pull request #32541 from CodaFi/signum-chi
CodaFi Jun 25, 2020
24ed94b
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
c106b2d
Merge pull request #32525 from compnerd/cant-read-this
compnerd Jun 25, 2020
4f8fda7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
46c2073
[AutoDiff] Start supporting loadable types with address-only tangents…
dan-zheng Jun 25, 2020
62389c3
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
9855496
Add benchmarks for Substring.dropFirst(_:) and dropLast(_:) (#32473)
natecook1000 Jun 25, 2020
411c6ec
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
5dad41f
[NFC] Modernize Casts
CodaFi Jun 23, 2020
18acadb
test: unixise the paths on the test (NFC)
compnerd Jun 24, 2020
87d2cdc
Sema: silence some uncovered warnings on MSVC (NFC)
compnerd Jun 25, 2020
12db528
test: remove stray comment markers (NFC)
compnerd Jun 24, 2020
e49a5b7
Switch to benchmark remove* instead of drop*
natecook1000 Jun 25, 2020
19afe00
update-checkout-config.json: adjust for tensorflow merge
dan-zheng Jun 25, 2020
0ea0b8e
[ConstraintSystem] Adjust recording of "fixed" requirements to avoid …
xedin Jun 25, 2020
6aeca31
Merge pull request #32547 from compnerd/slash-and-test
compnerd Jun 25, 2020
01737f2
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
af853fd
Correct WASI Command Line Parsing Error Handling Paths
CodaFi Jun 23, 2020
f8ac4ce
Merge remote-tracking branch 'github/tensorflow' into HEAD
dan-zheng Jun 25, 2020
3faad6a
Correct Windows Command Line Parsing Error Handling Paths
CodaFi Jun 23, 2020
f7ef6d4
[Diagnostics] Augment conformance failure to with a note about enum w…
xedin Jun 25, 2020
866835d
[Diagnostics] NFC: Add a TODO as a reminder about current diagnostic …
xedin Jun 25, 2020
9044aa0
[AST] ParamDecl::isNonEphemeral() not to evaluate InterfaceTypeRequest
rintaro Jun 25, 2020
87e9349
[Test] Add a test case for https://bugs.swift.org/browse/SR-12728
rintaro Jun 25, 2020
43fd786
[SR-5688] [Sema] Handle key path component base type on MemberAccessO…
LucianoPAlmeida Jun 25, 2020
4423139
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
6bdfa09
Sema: Replace getAccessor() calls in SPI attribute checking
slavapestov Jun 25, 2020
496ff68
AutoDiff: Replace calls of AbstractStorageDecl::getAccessor()
slavapestov Jun 25, 2020
6e5958f
AutoDiff: Simplify closure discriminator assignment
slavapestov Jun 25, 2020
3aa3325
Sema: Sink DiscriminatorFinder down into DebuggerTestingTransform
slavapestov Jun 25, 2020
0b02d61
Sema: Simplify applyTypeToClosureExpr()
slavapestov Jun 25, 2020
34cebb4
Sema: SanitizeExpr doesn't need a ConstraintSystem
slavapestov Jun 25, 2020
b7cea44
Sema: Move code completion entry points to TypeCheckCodeCompletion.cpp
slavapestov Jun 25, 2020
bbfcc62
Merge pull request #32127 from compnerd/python-is-dead-long-live-python
shahmishal Jun 26, 2020
13a8a48
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
568cd85
test: xfail Driver/sanitize_recover.swift
nkcsgexi Jun 26, 2020
5be1fb0
Merge pull request #32563 from nkcsgexi/64784401
nkcsgexi Jun 26, 2020
68def6e
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
1d20ddc
Merge pull request #32553 from rintaro/ast-isnonephemeral-interfacetype
rintaro Jun 26, 2020
672dd69
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
34292da
Merge pull request #32559 from slavapestov/remove-get-accessors-calls
slavapestov Jun 26, 2020
7f8c679
Merge pull request #32560 from slavapestov/clean-up-closure-discrimin…
slavapestov Jun 26, 2020
4887350
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
bd7d5ec
CMake: Remove workaround fixed in CMake 2.8.4
AndrewSB Jun 26, 2020
b663c9b
Merge pull request #32561 from slavapestov/code-completion-entry-points
slavapestov Jun 26, 2020
b507894
Sema: Fix a few places where we built AST that had to go through Sani…
slavapestov Jun 26, 2020
0232cd0
Sema: Sink SanitizeExpr down into TypeCheckCodeCompletion.cpp
slavapestov Jun 25, 2020
3ffff1a
Merge pull request #32549 from compnerd/comments-not-welcome
compnerd Jun 26, 2020
0a48a39
Merge pull request #32462 from kateinoigakukun/revert-32454
compnerd Jun 26, 2020
7976162
Merge pull request #32567 from slavapestov/sink-sanitize-expr
slavapestov Jun 26, 2020
bf1b1b5
Merge remote-tracking branch 'github/master' into HEAD
dan-zheng Jun 26, 2020
87df996
Add fast string interpolation for metatypes (#32113)
airspeedswift Jun 26, 2020
eade392
test: xfail validation-test/StdlibUnittest/RaceTest.swift
nkcsgexi Jun 26, 2020
5edaae3
test: xfail validation-test/Sanitizers/tsan-type-metadata.swift
nkcsgexi Jun 26, 2020
fa53ba8
test: xfail validation-test/Sanitizers/witness_table_lookup.swift
nkcsgexi Jun 26, 2020
6d27611
Merge pull request #32569 from nkcsgexi/64809498
nkcsgexi Jun 26, 2020
af52886
Merge pull request #32516 from CodaFi/NPE-NBD
CodaFi Jun 26, 2020
a1f0155
[SourceKit/CursorInfo] Still print implicit decls in cursorinfo to ha…
Jun 26, 2020
a3a20d9
Use a shorter example string. (#32557)
amartini51 Jun 26, 2020
336d63f
Merge pull request #32551 from natecook1000/nate/substring_removefirst
swift-ci Jun 26, 2020
bbec1eb
[SourceKit] Enable ASTContext caching in other completion-like requests
rintaro Jun 26, 2020
ba2e04b
[ownership] Move the stdlib ome point to before global opt.
gottesmm Jun 26, 2020
fb99e84
ExplicitModuleLoader: use a temporary source manager for loading the …
nkcsgexi Jun 26, 2020
a536947
ModuleLoader: refactor computePrebuiltModulePath to facilitate depend…
nkcsgexi Jun 26, 2020
ebccb92
Merge pull request #32548 from compnerd/covering
compnerd Jun 26, 2020
a8d44bc
Merge pull request #32558 from xedin/fix-req-conformace-assessment
xedin Jun 26, 2020
5300dc2
Merge pull request #32534 from zoecarver/fix/cxx/constructor-return-stmt
swift-ci Jun 26, 2020
6a24820
AutoDiff: Don't synthesize TangentVector typealias alongside the Tang…
slavapestov Jun 26, 2020
61640fe
Sema: Remove allowDerived parameter of computeAbstractTypeWitness(), …
slavapestov Jun 26, 2020
dfbb958
Sema: Try to derive type witnesses before running inference
slavapestov Jun 26, 2020
c4b3727
Merge pull request #32577 from nkcsgexi/new-source-manager-for-module…
nkcsgexi Jun 27, 2020
0816167
Merge pull request #32564 from nkcsgexi/scanner-report-prebuilt-module
nkcsgexi Jun 27, 2020
86cffd7
Merge pull request #32578 from slavapestov/derive-type-witness-before…
slavapestov Jun 27, 2020
f245717
[SourceKit/CodeFormat] Fix multi-line array literal elements not inde…
Jun 27, 2020
2e6609c
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 27, 2020
65af826
test: xfail Constraints/operator.swift
nkcsgexi Jun 27, 2020
4ef82a8
Merge pull request #32586 from nkcsgexi/64844584
nkcsgexi Jun 27, 2020
1715021
[TypeChecker] NFC: Clarify flaky diagnostic XFAIL
xedin Jun 27, 2020
713c836
Merge pull request #32587 from xedin/rdar-64844584
xedin Jun 28, 2020
e25934f
Merge pull request #32451 from stephencelis/patch-1
swift-ci Jun 28, 2020
8a39f82
Merge pull request #32565 from AndrewSB/fixed-in-cmake-2.8.4
compnerd Jun 28, 2020
2a200b2
SourceKit: silence as `-Wmisleading-indent` warning (NFCI)
compnerd Jun 26, 2020
02c3973
[TF] Fix derived conformances.
ainu-bot Jun 29, 2020
bbbe67e
Merge pull request #32576 from compnerd/brace-yourself
compnerd Jun 29, 2020
364981f
SwiftPrivateThreadExtras: correct misuse of API
compnerd Jun 22, 2020
34cbb30
test: unixise some paths in diagnostics tests (NFCI)
compnerd Jun 29, 2020
7895a4e
test: unixise path for Parse.source_locs (NFCI)
compnerd Jun 29, 2020
ebf01c9
Merge pull request #32593 from compnerd/dangling
compnerd Jun 29, 2020
a817409
test: make stdlib.NumericParsing Python 3 friendly
compnerd Jun 25, 2020
0893f08
Merge pull request #32574 from gottesmm/pr-0a4cbd7fcfed51ea527c5cce60…
gottesmm Jun 29, 2020
8307c6a
[SourceKit] Report 'key.reusingastcontext' in completion like requests
rintaro Jun 29, 2020
3d6bc24
Merge pull request #32595 from compnerd/path-parsing
compnerd Jun 29, 2020
d2b68c7
Merge pull request #32594 from compnerd/diagnostic-medicine
compnerd Jun 29, 2020
6d63d95
test: attempt to quote python interpreter path
compnerd Jun 29, 2020
63d9acd
[Sema] Report public use of local SPIs by the exportability checker
xymus May 14, 2020
c2452b7
Merge pull request #32598 from compnerd/numerically-correct
compnerd Jun 29, 2020
1c58abf
Merge pull request #32575 from nathawes/fix-no-quickhelp-for-shorthan…
Jun 29, 2020
79bdd43
Merge pull request #32493 from augusto2112/elf-shim-metadata-sections
compnerd Jun 29, 2020
caab4f4
[CSGen] Handle incorrect patterns (e.g. referencing unknown types)
xedin Jun 29, 2020
bf9347d
[TF] Fix derived conformances.
dan-zheng Jun 29, 2020
9adea2a
[TF] Garden derived conformances.
dan-zheng Jun 29, 2020
c90a369
[TF] Fix derived conformances.
dan-zheng Jun 29, 2020
637bac6
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
9ee4ebf
[Dependency Scanner] Use `pragma clang module import` in the hack fil…
artemcm Jun 28, 2020
4d3bd22
Merge pull request #32436 from kastiglione/dl/build-script-prioritize…
JDevlieghere Jun 29, 2020
6d0a7be
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
33336df
[SouceKit] Make "ASTContext reusing" optional
rintaro Jun 29, 2020
ff99d65
Merge pull request #32582 from nathawes/array-literal-sub-expr-indent…
Jun 29, 2020
859f430
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
ea5a31d
[NFC] Add a test for constraint generation failures in a pattern binding
hborla Jun 29, 2020
ff2cc35
ASTMangler: Tiny cleanup
slavapestov Jun 27, 2020
bddcda6
[Frontend] Factor out setupDependencyTrackerIfNeeded
hamishknight Jun 29, 2020
7bc5440
[Frontend] Internalize createDependencyTracker
hamishknight Jun 29, 2020
12ae72c
[Frontend] Move mangling stats to end of pipeline
hamishknight Jun 29, 2020
958bf8e
[Frontend] Move dependency verifier to end of pipeline
hamishknight Jun 29, 2020
4ca6732
[Frontend] NFC: Move dumpAPI up a bit
hamishknight Jun 29, 2020
553dadd
[Frontend] dumpAPI at the end of the pipeline
hamishknight Jun 29, 2020
440cd0b
[docs] Add documentation describing external resources. (#32584)
varungandhi-apple Jun 29, 2020
20990f4
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
7c87e1a
Merge pull request #32085 from xymus/spi-isnt-internal-for-real
xymus Jun 29, 2020
de3390f
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
73c99ac
[test] Reinstate CoreGraphics↔︎NSValue bridging tests on iOS/watchOS/…
lorentey Jun 23, 2020
65da7f6
Merge pull request #32602 from xedin/rdar-64844584
xedin Jun 30, 2020
a6e8066
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
b3fb762
[test] Don’t import UIKit on iOS 10.3
lorentey Jun 30, 2020
6fcfbaa
Merge pull request #32523 from buttaface/linker
CodaFi Jun 30, 2020
e50ad67
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
c579759
[stdlib] Use a direct initializer for typed to raw pointer conversion
lorentey Jun 30, 2020
31a7859
ASTMangler: Fix assertion when mangling invalid identifiers
slavapestov Jun 29, 2020
f8720d5
Sema: Force synthesized conformance to Differentiable in EmittedMembe…
slavapestov Jun 25, 2020
c1b0c93
Sema: Use request evaluator caching for EmittedMembersRequest
slavapestov Jun 25, 2020
055b3a8
Sema: Deterministically order declarations in EmittedMemberRequest
slavapestov Jun 27, 2020
89b2f27
AST: Mark implicit destructor as synthesized to fix non-deterministic…
slavapestov Jun 27, 2020
63bf06d
Add regression test for https://bugs.swift.org/browse/SR-11030 / rdar…
slavapestov Jun 30, 2020
422fd41
Sema: Fix assertion when synthesizing Codable with an IUO stored prop…
slavapestov Jun 29, 2020
9964215
Update status to indicate feature gate
rxwei Jun 30, 2020
4b2fecf
Merge pull request #32611 from slavapestov/codable-iuo-assert
slavapestov Jun 30, 2020
bc29e53
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
faa06bf
Merge pull request #32581 from slavapestov/cached-emitted-members-req…
slavapestov Jun 30, 2020
ffb59e7
Merge pull request #32610 from slavapestov/regression-test-sr11030
slavapestov Jun 30, 2020
e75562e
Merge pull request #32613 from apple/rxwei-patch-2
swift-ci Jun 30, 2020
ad69927
Merge pull request #32612 from lorentey/unsightlyBitCast
lorentey Jun 30, 2020
4cf4515
Merge pull request #32515 from lorentey/UIKit-NSValueBridging-tests
lorentey Jun 30, 2020
621b3b4
[Diag] Create frontend flags for localization and write tests (#32568)
HassanElDesouky Jun 30, 2020
621cecb
Revert "[Diag] Create frontend flags for localization and write tests…
davezarzycki Jun 30, 2020
6bc0385
Merge pull request #32590 from artemcm/HackingWithCModules
artemcm Jun 30, 2020
c213f19
Merge pull request #32607 from hborla/function-builder-csgen-failure
hborla Jun 30, 2020
1d09970
Merge pull request #32573 from compnerd/aspirational-quotes
compnerd Jun 30, 2020
4f27eee
Merge pull request #32615 from davezarzycki/pr32615
swift-ci Jun 30, 2020
a69ebc5
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
5c27465
Merge pull request #32601 from hamishknight/not-yet-over-and-out
hamishknight Jun 30, 2020
30ccb52
Merge pull request #32572 from rintaro/sourcekit-fast-completionliker…
rintaro Jun 30, 2020
e41c6e6
[TF] Fix `EuclideanDifferentiable` derived conformances.
dan-zheng Jun 30, 2020
377f9d0
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
8cced04
update-checkout-config.json: adjust for tensorflow merge
texasmichelle Jun 30, 2020
2b8c2cf
[AutoDiff] Fix unexpected non-differentiable property access error. (…
dan-zheng Jul 1, 2020
c2cb48d
[TF] Fix `TensorArrayProtocol` and `TensorGroup` derived conformances.
dan-zheng Jul 2, 2020
2a45cd2
[AutoDiff] Fix unexpected non-differentiable property access error.
dan-zheng Jul 2, 2020
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
36 changes: 36 additions & 0 deletions stdlib/public/stubs/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,42 @@ char ** _swift_stdlib_getUnsafeArgvArgc(int *outArgLen) {

return argv;
}
#elif defined(__OpenBSD__)
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/exec.h>

SWIFT_RUNTIME_STDLIB_API
char ** _swift_stdlib_getUnsafeArgvArgc(int *outArgLen) {
assert(outArgLen != nullptr);
if (_swift_stdlib_ProcessOverrideUnsafeArgv) {
*outArgLen = _swift_stdlib_ProcessOverrideUnsafeArgc;
return _swift_stdlib_ProcessOverrideUnsafeArgv;
}

int mib[2] = {CTL_VM, VM_PSSTRINGS};
struct _ps_strings _ps;
size_t len = sizeof(_ps);

if (sysctl(mib, 2, &_ps, &len, NULL, 0) == -1) {
char **empty_argv = static_cast<char **>(calloc(1, sizeof(char *)));
empty_argv[0] = nullptr;
*outArgLen = 0;
return empty_argv;
}

struct ps_strings *ps = static_cast<struct ps_strings *>(_ps.val);
*outArgLen = ps->ps_nargvstr;

char **argv_copy =
static_cast<char **>(calloc(ps->ps_nargvstr + 1, sizeof(char *)));
for(int i = 0; i < ps->ps_nargvstr; i++) {
argv_copy[i] = strdup(ps->ps_argvstr[i]);
}
argv_copy[ps->ps_nargvstr] = nullptr;

return argv_copy;
}
#else // Add your favorite OS's command line arg grabber here.
SWIFT_RUNTIME_STDLIB_API
char ** _swift_stdlib_getUnsafeArgvArgc(int *outArgLen) {
Expand Down