Commit Graph

1551 Commits

Author SHA1 Message Date
Dmitri Gribenko
50e52c2890 Merge pull request #1356 from dgrove-oss/libdispatch-tweak-build-for-CI
libdispatch: also build tests during build phase
2016-02-19 08:56:12 -08:00
Brian Gesiak
ac5f7c7326 [build-script] Build & test XCTest (on OS X, too)
Allow swift-corelibs-xctest to be built and tested on Linux and OS X,
via `utils/build-script --xctest --test`.

On OS X, XCTest is built via `xcodebuild`, which has been possible since
https://github.com/apple/swift-corelibs-xctest/pull/47. It's tested via
the "SwiftXCTestFunctionalTests" Xcode target. Keep in mind that
`xcodebuild` must be configured on the host machine to use a Swift
toolchain that can build XCTest--as of
https://github.com/apple/swift-corelibs-xctest/pull/48, that would be
`swift-DEVELOPMENT-SNAPSHOT-2016-02-08` or later.

On Linux, XCTest is built and tested via the project's
`build_script.py`, which has been possible since
https://github.com/apple/swift-corelibs-xctest/pull/46.
2016-02-19 00:09:57 -05:00
Michael Gottesman
72a8e6120e [lto] Add a new lto buildbot preset that does non-incremental builds. 2016-02-18 11:13:45 -08:00
Doug Gregor
fc83c880c7 Merge pull request #1317 from modocache/patch-2
[swift-api-dump] Omit 'python' in usage (NFC)
2016-02-18 09:37:36 -08:00
Michael Gottesman
3f29cdd0ad [build-script] Add an incremental smoke test flto preset. 2016-02-18 02:21:16 -08:00
Michael Gottesman
d10af7657b [build-script] Add in a build-script-impl option for -DSWIFT_ENABLE_LTO. 2016-02-18 02:18:15 -08:00
Dmitri Gribenko
220a2b9bb9 Merge pull request #1157 from hpux735/gold
Discard swift.ld in favor of portable solution and support gold linker in Swift
2016-02-18 00:45:28 -08:00
Michael Gottesman
765527f3a7 [build-script] Add the preset buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx.
This preset is meant for smoke testing of pull requests. It is an
attempt to make the mac os x smoke test (~140 min) closer in time to the
linux test (~15 minutes).
2016-02-17 19:21:58 -08:00
Michael Gottesman
3f8d0dbb31 [build-script] Remove ios/tvos flag from buildbot_incremental_base and
instead have a new preset buildbot_incremental_base_all_platforms that
has those flags.

The reason why this makes sense is:

1. There are a bunch of presets that inherit from
buildbot_incremental_base that do not want to build ios/tvos. So they
turn it off. That is wasteful and bug inducing.

2. I am going to be adding such a bot for OS X smoke tests. It only runs
OS X tests and builds OS X to keep the smoke test time down.
2016-02-17 19:21:58 -08:00
Luke Larson
c011d5f550 [rth] Flush stdout after print for correct output ordering 2016-02-17 18:11:36 -08:00
William Dillon
d0d9b1de5a Discard swift.ld and support gold linker 2016-02-17 17:47:35 -08:00
David Grove
196f8baea0 libdispatch: also build tests during build phase
A tweak to match the Swift CI pattern; build
the test cases during the build phase.
2016-02-17 21:08:54 +00:00
Luke Larson
24860d1e67 [rth] Don't raise an exception if tmp_dir doesn't exist 2016-02-17 11:51:58 -08:00
practicalswift
10b3e63b0f [Python] Fix two small PEP8 violations in recently introduced file "rth"
Before this commit:

```
$ flake8
./utils/rth:34:17: E127 continuation line over-indented for visual indent
./utils/rth:67:27: E127 continuation line over-indented for visual indent
$
```

After this commit:

```
$ flake8
$
```
2016-02-17 07:39:11 +01:00
Luke Larson
f53db0ebd3 [rth] Add resilience test helper utility 2016-02-16 18:52:34 -08:00
Doug Gregor
de253d9b6f [CMake] Fix installation of swift-api-dump.py 2016-02-16 09:15:39 -08:00
Dmitri Gribenko
5c59362688 Merge pull request #1267 from modocache/sr-237
[SR-237][build-script] Migrate more of build-script-impl to Python
2016-02-16 08:52:10 -08:00
Dmitri Gribenko
e5848ccd5a Merge pull request #1264 from takebayashi/fast-clone
Add --fast flag to utils/update-checkout
2016-02-16 08:32:03 -08:00
Shun Takebayashi
59a046b9bd Rename --fast to --skip-history 2016-02-16 21:59:27 +09:00
Luke Larson
d4ece4b4d0 [benchmark] Correctly depend on stdlib targets 2016-02-15 17:22:07 -08:00
Brian Gesiak
9980b5b062 [swift-api-dump] Omit 'python' in usage (NFC)
- Since this file has a Python shebang (`#!/usr/bin/env python`) at the top, it can be invoked directly, without specifying which Python interpreter to use on the command line.
- Use the `%(prog)s` substitution instead of writing the program name again explicitly.
2016-02-15 14:48:05 -05:00
Doug Gregor
fc43acd501 [swift-api-dump] Add support for -F/-I arguments. 2016-02-15 11:38:00 -08:00
Doug Gregor
9832468dac Install swift-api-dump.py script to make it easier to use 2016-02-15 11:38:00 -08:00
Doug Gregor
7d26349c9c Rename omit-needless-words.py to swift-api-dump.py.
This script is more general than its name implies. NFC
2016-02-15 11:38:00 -08:00
Brian Gesiak
120ec99be5 [build-script] Archive symbols in Python
Rather than archiving symbols at the very end of the build-script-impl
shellscript, do so at the end of the Python build-script. A small step towards
achieving SR-237.
2016-02-15 12:58:09 -05:00
Brian Gesiak
3821e6ef76 [build-script] Set TOOLCHAIN_PREFIX in Python
Rather than setting the path to the .xctoolchain in the build-script-impl
shellscript, do so in the Python build-script. A small step towards
achieving SR-237.
2016-02-15 10:48:46 -05:00
Brian Gesiak
d717f8f9d7 [build-script] Set INSTALL_PREFIX in Python
Rather than setting a default value for the INSTALL_PREFIX in the
build-script-impl shellscript, do so in the Python build-script. A small step
towards achieving SR-237.
2016-02-15 10:48:45 -05:00
Brian Gesiak
3b61ad3086 [build-script] Migrate "SHOW_SDKS" to Python
Rather than printing `xcodebuild` version information in the
build-script-impl shellscript, do so in the Python build-script. A small step
towards achieving SR-237.
2016-02-15 10:48:45 -05:00
Brian Gesiak
8012b1c4e2 [build-script] Migrate "SKIP_BUILD" to Python
Rather than determining which builds to skip in the build-script-impl
shellscript, do so in the Python build-script. A small step towards
achieving SR-237.
2016-02-15 10:48:45 -05:00
Brian Gesiak
64b93aa582 [build-script] Determine BUILD_NINJA in Python
Rather than determining whether to build Ninja in the build-script-impl
shellscript, do so in the Python build-script. A small step towards achieving
SR-237.
2016-02-15 10:48:41 -05:00
practicalswift
9eb2ee0638 [gardening] Fix accidental double spaces 2016-02-14 17:30:44 +01:00
practicalswift
e52895497a [Python] Fix "indentation is not a multiple of four".
As discussed with @gribozavr in https://github.com/apple/swift/pull/1287#issuecomment-183413580
2016-02-12 23:39:46 +01:00
practicalswift
970216434d [Python] Fix "too many leading '#' for block comment"
See discussion with @gribozavr in https://github.com/apple/swift/pull/1287#issuecomment-183413319
2016-02-12 23:02:10 +01:00
Doug Gregor
54ac63ade2 [Omit needless words] Minor tweaks to the script. 2016-02-12 10:34:55 -08:00
Dmitri Gribenko
a27bea046a Merge pull request #1212 from dgrove-oss/libdispatch_build_plumbing
Next step in connecting libdispatch and foundation builds
2016-02-11 13:46:50 -08:00
Shun Takebayashi
5e75a1ca7e Add --fast flag to utils/update-checkout 2016-02-11 10:49:51 +09:00
lplarson
543f84c5fc Merge pull request #1260 from practicalswift/pep8-regressions
[Python] Fix recently introduced PEP 8 regressions.
2016-02-10 14:52:33 -08:00
Michael Ilseman
d6822ae5ac [Omit needless words] add a -v verbose flag 2016-02-10 13:44:31 -08:00
practicalswift
87bcd45c9e [Python] Fix recently introduced PEP 8 regressions.
After this commit:

$ flake8
$

(No PEP 8 warnings or errors left in the repo.)
2016-02-10 22:23:49 +01:00
Erik Eckstein
91e36c9574 utils: adapt cmpcodesize to the new benchmark executable names 2016-02-10 12:14:23 -08:00
Chris Lattner
c66fdac034 Revert "Generalize omit-needless-words script to swift-api-dump."
This reverts commit a4e4af0c40.
2016-02-09 22:33:52 -08:00
Doug Gregor
a4e4af0c40 Generalize omit-needless-words script to swift-api-dump.
The omit-needless-words script has grown into a more general "API
dumping" script. Make it a bit more useful by installing it alongside
swift-ide-test, symlinking it in the build directory next to
swift-ide-test (for Swift developers), and defaulting to using the
swift-ide-test in the same directory as the script. Now it's fairly
easy to dump the API for a given SDK with, e.g.,

  swift-api-dump.py -s iphoneos
2016-02-09 16:41:24 -08:00
Doug Gregor
14b9196129 [Omit needless words script] Add multiprocessing support.
Dumping APIs for large swaths of SDK takes time; parallelize it in the
most trivial way.
2016-02-09 16:41:23 -08:00
Doug Gregor
280779fa24 Improve omit-needless-words API dumping script to dump SDKs.
When invoking omit-needless-words without a module argument (-m), the
script will now dump the API of all of the frameworks in the provided
SDKs. One can also specify multiple SDK arguments, e.g.,

  omit-needless-words.py -s iphoneos macosx

to dump the APIs for the modules of multiple SDKs. The invocation

  omit-needless-words.py -s macosx iphoneos watchos appletvos

will dump everything in one shot.

One can still dump individual modules with "-m", but you'll now have
to specify an SDK from which to retrieve the module.
2016-02-09 16:41:23 -08:00
Jordan Rose
1b8caf5998 [CMake] Add an option to compile the stdlib resiliently.
The short-term goal here is to get everything compiling and all the tests
passing.
The mid-term goal is to test the performance of a resilient stdlib.
The long-term goal is to make this the default (and only) build mode.

This should be considered EXPERIMENTAL; we can't even build libSwiftCore
successfully yet.
2016-02-09 16:32:45 -08:00
Erik Eckstein
1e88689bad vim-utils: highlight the sil call instructions in a bolder color.
Because often these are the most important instructions in a function.
2016-02-09 16:25:43 -08:00
Erik Eckstein
e70b38b1a5 vim-utils: add missing instruction keywords in sil syntax file 2016-02-09 16:25:43 -08:00
Doug Gregor
8a3a2958e7 [Omit needless words] Improve our handling of plural acronyms. 2016-02-08 22:41:16 -08:00
Doug Gregor
5963cfd36e [Omit needless words] Factor module dumping out of "main". NFC 2016-02-08 22:41:16 -08:00
Doug Gregor
293d130272 [Omit needless words] Add a flag -enable-strip-ns-prefix to control NS stripping
Stripping "NS" is a massively invasive change; separate it out into
another flag.
2016-02-08 22:41:16 -08:00