Commit Graph

4111 Commits

Author SHA1 Message Date
Innovimax
335fe49b0e fix typo (#21473) 2018-12-20 21:37:55 -05:00
Daniel Rodríguez Troitiño
89d2ce59d4 [build-preset] Add Android AArch64 preset. 2018-12-20 11:22:57 -08:00
Saleem Abdulrasool
39982ae1c6 build: add ConcurrencySal.h to VFS overlay
When building CoreFoundation, we include ConccurrencySal.h.  When
cross-compiling on a case sensitive filesystem, this fails due to the naming in
the SDK.  Add an entry to repair the cross-compilation.
2018-12-20 09:10:56 -08:00
Mishal Shah
ba2233d248 Update the toolchain plist by moving SWIFT_USE_DEVELOPMENT_TOOLCHAIN_RUNTIME into OverrideBuildSettings 2018-12-18 18:14:52 -08:00
Mishal Shah
7df7359d8f [update-checkout] Add support to clone libcxx and clang-tools-extra for master, master-next and swift-5.0-branch scheme 2018-12-17 15:28:43 -08:00
Saleem Abdulrasool
41d9c2cc59 stdlib: restructure for OS family layout of SDK overlay
The SDK directory is now confusing as the Windows target also has a SDK
overlay.  In order to make this more uniform, move the SDK directory to
Darwin which covers the fact that this covers the XNU family of OSes.
The Windows directory contains the SDK overlay for the Windows target.
2018-12-06 11:32:05 -08:00
Xi Ge
5da65ac704 Merge pull request #21013 from nkcsgexi/doc-support
Sourcekit/DocSupport: include fully annotated generic signatures for extension decls.
2018-12-05 18:31:29 -08:00
Saleem Abdulrasool
0f0098265c incrparse: move include to top
Address feedback from ahoppen.  NFC.
2018-12-04 19:46:03 -08:00
Xi Ge
d620dfae5e Sourcekit/DocSupport: include fully annotated generic signatures for extension decls. rdar://40906297 2018-12-04 14:29:28 -08:00
Saleem Abdulrasool
2793b64491 incrparse: use python to diff rather than diff
Use the python library `difflib` which is part of a standard python
installation to generate the diff.  This allows us to run the tool on
Windows wihtout needing external tools installed.
2018-12-04 13:26:52 -08:00
Slava Pestov
ba04d49ebd Evolution: Replace unused --no-backward-deployment flag with --backward-deployment flag
This adds a new mode where we always build the app with the new library,
and run it with the old and new library. This is used to test backward
deployment of code that uses weak-linked symbols.

To ensure that we properly crash if we reference an undefined symbol that
is not weak linked, also pass a linker flag to bind symbols eagerly.
2018-12-03 20:36:03 -05:00
Saleem Abdulrasool
043912fd93 remote-run: make tests partially pass on Windows
Not all the tests are possible to run on Windows since they expect a
Unix-like shell environment.  However, the rest of the tests can be
accommodated.  This actually found an issue in the implementation.
Since the implementation assumes the target is POSIX/Unix-y, we should
use posixpath rather than os.path which uses the host's path style.
2018-12-02 20:58:19 -08:00
Saleem Abdulrasool
c9cf8fcd20 Merge pull request #20719 from compnerd/threading-extras
port SwiftPrivatePthreadExtras to Windows
2018-11-29 08:45:57 -08:00
Saleem Abdulrasool
8935b89984 Merge pull request #20824 from compnerd/static-foundation
build-script: build static version of Foundation
2018-11-28 12:16:44 -08:00
swift-ci
68f7cf6a46 Merge pull request #20820 from eeckstein/fix-viewcfg 2018-11-28 11:52:12 -08:00
swift-ci
9ea92f4b23 Merge pull request #20829 from palimondo/not-fish-snake-scale 2018-11-28 11:39:54 -08:00
Erik Eckstein
92e6c4b8cd utils: support quoted block names in the viewcfg script 2018-11-28 10:46:18 -08:00
Saleem Abdulrasool
69e2018806 build-script: build static version of Foundation
Build and install Foundation static.  We now build Foundation using
CMake, which does not easily generate static and shared versions of
libraries.  Create two builds to populate the toolchain
distribution.
2018-11-28 10:12:19 -08:00
Slava Pestov
ee8a3ea566 Evolution: Build tests with optimizations if required
Make sure we honor the swift_test_mode parameter, by passing in
the right optimization flags. Also if we're passing in any flags,
pass in -wmo too.
2018-11-28 12:39:04 -05:00
Pavol Vaskovic
df9ac3268b [Gardening] Dead code removal
After commit aaece4f1f2 from PR #12048, this was just a dead code.
2018-11-28 17:52:10 +01:00
Pavol Vaskovic
c1388abd1b [Gardening] Fix I201
I201 Missing newline before sections or imports.
2018-11-28 17:13:04 +01:00
Pavol Vaskovic
98522c51d6 [Gardening] Per precedent, suppress I201 warning 2018-11-28 17:12:13 +01:00
Pavol Vaskovic
53cd115b0e [Gardening] Fix W291 trailing whitespace 2018-11-28 16:57:23 +01:00
swift-ci
022ade1ddf Merge pull request #20793 from compnerd/static-libdispatch 2018-11-27 17:05:11 -08:00
Saleem Abdulrasool
81321b57a4 build-script: build static version of libdispatch
build and install libdispatch static.  We now build libdispatch using
CMake, which does not easily generate static and shared versions of
libraries.  Create two builds to populate the toolchain distribution.
2018-11-27 11:51:26 -08:00
Daniel Rodríguez Troitiño
82c91cc80d Add missing option to CI preset for Android.
Also, fix a typo in the build script instructions.
2018-11-27 10:51:05 -08:00
swift-ci
ac8b89abb5 Merge pull request #20082 from drodriguez/android-aarch64-build-script 2018-11-26 19:34:24 -08:00
Saleem Abdulrasool
0693bec1f1 sdlib: rename SwiftPrivatePthreadExtras to SwiftPrivateThreadExtras
This is in preparation to make the code here more target agnostic for
porting to the Windows threading primitives.  This is used pretty
extensively in the tests, so disabling tests would lose a chunk of
coverage.
2018-11-26 13:09:31 -08:00
Alex Blewitt
fb52a2e85a Merge pull request #20681 from apple/fix-symbolicate-linux-fatal-for-streaming-stacktraces-2
Fix symbolicate linux fatal for streaming stacktraces 2
2018-11-22 09:51:10 +00:00
Grzegorz Miłoś
820d5f3df6 Syntactic changes to satisfy linter on symbolicate-linux-fatal 2018-11-21 17:44:14 +00:00
tokorom
472480c118 [vim] Fix default label problem 2018-11-21 11:14:43 +09:00
Grzegorz Miłoś
eb06d8e08f Update symbolicate-linux-fatal to bring in all 4.1 fixes/improvements 2018-11-20 12:43:08 +00:00
Ted Kremenek
6c8bed847f Merge pull request #20374 from tkremenek/swift5-verison
Bump compiler version to Swift 5.
2018-11-16 04:30:08 -08:00
Slava Pestov
5243cc718d Evolution: Compare symbols before and after
A resilient change should not *remove* previously-public symbols.

Note that currently, the test_superclass_properties test does not
meet this critierion, because we always emit keypath property
descriptors, even when the property is an override. Fixing this
is a larger change that I'll address in a follow-on PR, so for now
I'm just going to disable the symbol check for this one test only.

Part of <rdar://problem/40432647>.
2018-11-15 19:55:46 -05:00
Ted Kremenek
cf2dce9166 Merge branch 'master' of https://github.com/apple/swift into swift5-verison
# Conflicts:
#	test/api-digester/Outputs/stability-stdlib-source.swift.expected
2018-11-14 17:31:55 -08:00
Mishal Shah
e7481cc0cd Update the plist to use DefaultBuildSettings not OverrideBuildSettings for SWIFT_USE_DEVELOPMENT_TOOLCHAIN_RUNTIME 2018-11-14 13:44:46 -08:00
Mishal Shah
cfd3c52b6f Update the plist information for swift toolchains
rdar://45197621
2018-11-14 12:43:48 -08:00
Harlan Haskins
0a861af752 [CMake] Remove swift-syntax install component 2018-11-13 17:29:01 -08:00
Ted Kremenek
62799c013d Merge branch 'master' into swift5-version
# Conflicts:
#	test/api-digester/Outputs/stability-stdlib-source.swift.expected
2018-11-13 13:55:51 -08:00
Mishal Shah
bae265e308 Revert "Revert "[build-script] Update build-script to support building and installing the SourceKit stress tester"" 2018-11-12 11:08:36 -08:00
Mishal Shah
e7d501c2bd Revert "[build-script] Update build-script to support building and installing the SourceKit stress tester" 2018-11-11 17:49:35 -08:00
Nathan Hawes
2e720c3787 Merge pull request #20160 from nathawes/build-script-skstresstester
[build-script] Update build-script to support building and installing the SourceKit stress tester
2018-11-09 16:08:16 -08:00
Ted Kremenek
748dae7d10 Merge remote-tracking branch 'upstream/master' into swift5-version
# Conflicts:
#	validation-test/stdlib/HashedCollectionFilter3.swift
#	validation-test/stdlib/HashingPrototype.swift
2018-11-09 09:39:22 -08:00
Nathan Hawes
5a4ea907a6 Update presets to include the SourceKit stress tester executables in the osx package 2018-11-08 15:51:21 -08:00
Marc Rasi
bf18697b4f parsing, typechecking, and SILGen for #assert
`#assert` is a new static assertion statement that will let us write
tests for the new constant evaluation infrastructure that we are working
on. `#assert` works by lowering to a `Builtin.poundAssert` SIL
instruction. The constant evaluation infrastructure will look for these
SIL instructions, const-evaluate their conditions, and emit errors if
the conditions are non-constant or false.

This commit implements parsing, typechecking and SILGen for `#assert`.
2018-11-07 16:34:17 -08:00
Arnold Schwaighofer
44b3a47e56 Merge pull request #20333 from aschwaighofer/dynamic_function_replacement
Dynamic function replacement
2018-11-07 13:08:46 -08:00
Nathan Hawes
506307c626 [build-script] Update build-script with a new --skstresstester flag to support building and installing the SourceKit stress tester
This makes use of a helper script in the stress tester repo to do the actual
build and install: https://github.com/apple/swift-stress-tester/blob/master/SourceKitStressTester/Utilities/build-script-helper.py
2018-11-07 09:14:39 -08:00
Graydon Hoare
6b972f5165 Merge pull request #20347 from graydon/flake8-fixes
Flake8 fixes
2018-11-06 17:30:01 -08:00
Arnold Schwaighofer
cf2eb2115e Fix python indentation for real 2018-11-06 15:26:59 -08:00
Ted Kremenek
46510a5eba Bump compiler version to Swift 5.
Main pieces:

- Bump swift-version to 5
- Remove -swift-version 3 support
2018-11-06 14:38:55 -08:00