Commit Graph

5057 Commits

Author SHA1 Message Date
Ben Langmuir
43bb415668 Merge pull request #30963 from benlangmuir/isdb-san
[build-script] Add sanitizer support to indexstore-db product
2020-04-14 09:28:55 -07:00
Saleem Abdulrasool
36667b9629 Merge pull request #31006 from compnerd/explicit-paths
build: explicitly pass the path to python2,python3
2020-04-14 08:41:44 -07:00
David Zarzycki
80f0e39e1a [line-directive] Escape literal '['
New versions of Python warn if the literal is not escaped. Specifically:

    "Support for nested sets and set operations in regular expressions as in
    Unicode Technical Standard #18 might be added in the future. This would
    change the syntax. To facilitate this future change a FutureWarning will
    be raised in ambiguous cases for the time being. That include sets
    starting with a literal '[' or containing literal character sequences
    '--', '&&', '~~', and '||'. To avoid a warning, escape them with a
    backslash. (Contributed by Serhiy Storchaka in bpo-30349.)"

https://docs.python.org/dev/whatsnew/3.7.html
2020-04-14 07:19:25 -04:00
Saleem Abdulrasool
fa6bedeccd build: explicitly pass the path to python2,python3
Explicitly pass the path to the python interpreter on macOS by using
`xcrun` to find the tools.
2020-04-13 20:29:29 -07:00
Ben Langmuir
65fe324733 Fix macOS indexstore-db preset 2020-04-13 16:13:52 -07:00
Ben Langmuir
1d7ce7efe5 [build-script] Add sanitizer support to indexstore-db product
Support the usual `--enable-*san options`, but also add a
`--test-indexstore-db-santitize-all` that runs the tests once for each
sanitizer. Sanitizing just indexstore-db with a regular toolchain should
be much faster than using sanitized compilers.
2020-04-13 15:39:36 -07:00
Robert Widmann
fa1e9df207 Merge pull request #30981 from omochi/run-test-jobs
[run-test] add `--build-jobs` option
2020-04-12 10:42:34 -07:00
Robert Widmann
22b0526917 Merge pull request #30082 from 3405691582/OpenBSD_Port_Build
Build system recognizes OpenBSD.
2020-04-12 09:30:17 -07:00
omochimetaru
081ffaa8d5 [run-test] add --build-jobs option 2020-04-12 08:43:55 +09:00
Saleem Abdulrasool
c505d19045 vim: add differentiability_witness to SIL syntax
Add the keyword from the experimental auto-differentiation functionality.
2020-04-11 10:49:09 -07:00
Dario Rexin
2257667ad3 Merge pull request #30864 from drexin/wip-fix-static-executable
Fix linker flags for -static-executable
2020-04-08 22:01:40 -07:00
Argyrios Kyrtzidis
1b26b96f05 Merge pull request #30897 from dan-zheng/autodiff-cleanup
[AutoDiff] Clean up syntax.
2020-04-08 21:07:01 -07:00
Mishal Shah
e4aa8a90a4 [Checkout] Update checkout scheme for release/5.3 2020-04-08 16:50:55 -07:00
Dario Rexin
e4e6c16319 Fix linker flags for -static-executable
Also adds a test to ensure it does not break in the future
2020-04-08 13:25:27 -07:00
Dan Zheng
73f0560af5 [AutoDiff] Standardize on "differentiability parameter" terminology.
Change "differentiation parameter" to "differentiability parameter", matching
terminology in docs/DifferentiableProgramming.md.
2020-04-08 13:01:17 -07:00
Dan Zheng
5b38853d76 [AutoDiff] Remove DifferentiableAttributeFuncSpecifier.
Remove unused `DifferentiableAttributeFuncSpecifier` syntax node.
2020-04-08 13:01:00 -07:00
Robert Widmann
e162d0a2ba Merge pull request #30850 from gribozavr/run-test-filter
utils/run-test: added lit's --filter option
2020-04-08 12:49:45 -07:00
Dan Zheng
1addfe0ea3 [AutoDiff] Remove @differentiable attribute jvp: and vjp: argument syntax.
Remove `MaybeJVP` and `MaybeVJP` from `DifferentiableAttributeArguments`.
2020-04-08 10:22:56 -07:00
Doug Gregor
b6df6ef59f Merge pull request #30843 from DougGregor/consistent-simulator-triples
[Build] Use simulator triples consistently
2020-04-07 20:23:51 -07:00
Rintaro Ishizaki
496c303ab5 Merge pull request #30865 from rintaro/sourcekit-completion-rdar61367416
[SourceKit] Don't use diagnostics to indicate fast-completion
2020-04-07 17:58:19 -07:00
Rintaro Ishizaki
4870d1c017 [SourceKit] Don't use diagnostics to indicate fast-completion
Add 'key.reusingastcontext: 1' to the response instead.
Using diagnostics can be a noise to indexing log clients.

rdar://problem/61367416
2020-04-07 16:26:00 -07:00
Doug Gregor
78880ffc1a Merge pull request #27776 from owenv/catch_revamp_take_4
[SE-0276] Support multiple patterns in catch clauses
2020-04-07 12:31:33 -07:00
Dmitri Gribenko
9f3a6cdeef utils/run-test: added lit's --filter option
Added a pass through of lit's `--filter` option to utils/run-test, to
allow running a subset of tests, for example `./utils/run-test
--filter=irgen` runs tests in `test/IRGen` and any other test with
"irgen" in its name.
2020-04-07 16:28:03 +02:00
Doug Gregor
044613a13b [build-script] Add -simulator to simulator target triples. 2020-04-06 16:52:56 -07:00
Stephen Canon
248c554524 Add Float16 to stdlib (#30130)
Add Float16 (IEEE 754 binary16) to the standard library, plus assorted runtime support operations.

Swift Evolution thread: https://forums.swift.org/t/se-0277-float16/33546
2020-04-06 17:57:44 -04:00
Jonas Devlieghere
dc57ddc8a3 Merge pull request #30749 from MForster/fix-lldb-toolbox
Fix the LLVM repo path in lldbToolBox.py
2020-04-06 08:49:51 -07:00
Owen Voorhees
43e2d107e1 [SE-0276] Implement multi-pattern catch clauses
Like switch cases, a catch clause may now include a comma-
separated list of patterns. The body will be executed if any
one of those patterns is matched.

This patch replaces `CatchStmt` with `CaseStmt` as the children
of `DoCatchStmt` in the AST. This necessitates a number of changes
throughout the compiler, including:
- Parser & libsyntax support for the new syntax and AST structure
- Typechecking of multi-pattern catches, including those which
  contain bindings.
- SILGen support
- Code completion updates
- Profiler updates
- Name lookup changes
2020-04-04 09:28:26 -07:00
Xi Ge
2119851d71 Merge pull request #30804 from nkcsgexi/60786484
swift-api-checker.py: add -swift-only flag when checking ABI stability
2020-04-03 18:15:15 -07:00
Xi Ge
e937184b99 swift-api-checker.py: add framework search path for XCTest 2020-04-03 16:32:00 -07:00
Xi Ge
419b14772c swift-api-checker.py: add -swift-only flag when checking ABI stability
The existing logic of ABI checking only works for Swift symbols. We need to
add this flag so the script can work with Swift overlays.

rdar://60786484
2020-04-03 16:24:05 -07:00
3405691582
f8d0174b85 Build system recognizes OpenBSD.
Commit for CMake and build scripts to recognize OpenBSD. To keep this
commit relatively short, this just deals with the rather simple and
uncontroversial changes to the build system.

Note that OpenBSD calls "x86_64" as "amd64", Since the Swift stdlib will
be put in a subdirectory named after ARCH, to ensure the standard
library is properly found later, we use the native architecture name for
OpenBSD in the build system rather than trying to deal with the
difference the other way around.
2020-04-03 13:34:17 -04:00
Michael Forster
35b06b6aa3 Fix the LLVM repo path in lldbToolBox.py
I guess this got broken in the monorepo migration.
2020-04-01 17:54:07 +02:00
Dario Rexin
964de289a7 Update cmake version to 3.16.5
3.15.1 contains a bug that causes libraries that use the CMake Swift module to be built with -Onone, even in release mode.
2020-03-31 18:42:53 -07:00
Saleem Abdulrasool
45c072702a Merge pull request #30662 from tachoknight/master
Modification to allow checking out subprojects with Python 2 and 3.
2020-03-27 16:29:29 -07:00
Fred Riss
a4c5671a5f [build-script-impl] Pass host tools to LLDB's Cmake when cross-compiling 2020-03-27 13:41:26 -07:00
Ron Olson
629fc8d944 Modification to allow checking out subprojects with Python 2 and 3. 2020-03-26 15:36:54 -05:00
Nathan Hawes
9aafadd090 [SourceKit/DocSupport] Report the required bystander modules on symbols from cross-import overlays.
Resolves rdar://problem/59446044
2020-03-24 10:31:08 -07:00
Ben Langmuir
7710ba7c43 Bump the default clang version to 10.0.0
To match the current value in llvm-project. This fixes runnign clang
tests under build-script without explicitly setting the version, where
there is a test passing -fclang-abi-compat=9 that was previously
failing.

rdar://60376468
2020-03-19 14:12:09 -07:00
Argyrios Kyrtzidis
08f7028446 Merge pull request #30482 from apple/syntax-incremental-parse-diagnostic
[Parse] Fix issue with incremental re-parsing for SwiftSyntax emitting bogus parsing error
2020-03-18 20:17:27 -07:00
Argyrios Kyrtzidis
bea79d48c1 Fix python lint issue 2020-03-18 17:14:05 -07:00
Argyrios Kyrtzidis
1882b50555 [libSyntax] Enhance incremental re-parsing testing to also check whether unexpected diagnostics were emitted
Enhances `swift-syntax-test` to output the parser diagnostics so we can verify that
if the incremental parse resulted in parser diagnostics, those diagnostics were also emitted during the full parse.
2020-03-18 11:52:21 -07:00
Andrew Trick
75bad901a3 Merge pull request #30467 from atrick/add-inline-never
Add -sil-inline-never-functions flag.
2020-03-18 08:27:46 -07:00
Andrew Trick
e8d3ee11eb Add -sil-inline-never-functions flag.
And fix a test case that assumes Array.append is never inlined.

We need to be able to prevent inlining a function and any of its
specializations. There's no way to specify multiple function names on
the command line, so we use the partial match technique.
2020-03-18 00:36:49 -07:00
Ted Kremenek
39c34c89ee Bump Swift version to 5.3 2020-03-17 13:54:32 -07:00
swift-ci
9dafc3bbfa Merge pull request #30426 from valeriyvan/update_checkout.py 2020-03-16 12:20:18 -07:00
Mishal Shah
a1fdad7b08 [Preset] Add verbose-build flag to Linux base preset 2020-03-16 10:19:14 -07:00
Valeriy Van
f3655ad27a Fixes usage description of update_checkout.py 2020-03-16 17:35:46 +01:00
Adrian Prantl
7d699120b4 build-script: Avoid re-runnning the entire LLDB test suite twice. 2020-03-13 16:32:46 -07:00
adrian-prantl
7fc48d8fb3 Merge pull request #30303 from adrian-prantl/57880844
build-script: Rerun all lldb Swift tests with DWARFImporter.
2020-03-13 16:32:33 -07:00
Adrian Prantl
e676286c97 build-script: Rerun all lldb Swift tests with DWARFImporter.
rdar://problem/57880844
2020-03-12 19:34:23 -07:00