Commit Graph

1607 Commits

Author SHA1 Message Date
Dmitri Gribenko de8322951c Merge pull request #1726 from compnerd/autolink-extract
build: install swift-autolink-extract always
2016-03-24 22:18:21 -07:00
Vedant Kumar 708c6409b0 Skip compiler-rt in Xcode-driven builds 2016-03-24 10:36:26 -07:00
Brian Gesiak e6801bd1a2 Merge pull request #1766 from modocache/build-presets-redundant-crash-reporter-param
[build-presets] No need to disable crash reporter (NFC)
2016-03-23 22:59:46 -04:00
Brian Gesiak 565c0d49b5 Merge pull request #1765 from modocache/build-presets-no-explicit-static-stdlib
[build-presets] No need to disable static stdlib (NFC)
2016-03-23 22:58:39 -04:00
swift-ci 5b1bb6573d Merge pull request #1764 from modocache/build-presets-xctest-ci 2016-03-23 01:21:29 -07:00
Slava Pestov 80eb599e2c build-script: Actually fix --swift-stdlib-sil-serialize-all
Oops, I didn't test with this flag off.
2016-03-22 17:41:09 -07:00
Slava Pestov 34e41f2e81 built-script: Add --swift-stdlib-sil-serialize-all flag
We want to have the option of building the standard library without
-sil-serialize-all.

For now, the build crashes in the SIL verifier due to various issues;
upcoming patches will address these.

This is part of the larger goal of building the stdlib with
-enable-resilience.

Part of https://bugs.swift.org/browse/SR-267.
2016-03-22 17:13:34 -07:00
Doug Gregor 593932741c Remove historical flags -enable-omit-needless-words/-enable-infer-default-arguments/-enable-swift-name-lookup-tables.
NFC; all of these options are always-on now and we no longer have a
way to turn them off.
2016-03-22 17:04:19 -07:00
Saleem Abdulrasool 6749cfeafb build: install swift-autolink-extract as aux-driver-tools
swift supports cross-compilation.  The autolink extract tool is needed when
targeting non-Darwin targets even on Darwin.  Install it as the aux-driver-tools
component.  Update the Linux builds to install this component by default.
2016-03-22 09:38:53 -07:00
Brian Gesiak 2af45a08f1 [build-presets] No need to disable crash reporter
The `--darwin-crash-reporter-client` is not enabled unless explicitly passed in to the build scripts. This is not done by the Python build script nor any of the presets, so there's no need to explicitly disable it.
2016-03-22 02:42:47 -04:00
Brian Gesiak 9ff202f9f2 [build-presets] No need to disable static stdlib
Static stdlib builds are disabled unless `--build-swift-static-stdlib` is explicitly passed in to the build scripts. As a result, `--build-swift-static-stdlib=0` is pointless--unless it's being used to counteract another `--build-swift-static-stdlib` being passed to the build script, but this is not the case in any of the uses in the build presets.

Remove the unnecessary parameters to make the build presets easier to understand.
2016-03-22 02:39:45 -04:00
Brian Gesiak b198279d12 [build-presets] Foundation built based on platform
Previously, the XCTest CI preset would attempt to build
corelibs-foundation on OS X. corelibs-foundation is not meant to be
built via the build-script on OS X, so this would cause issues.

Remove the explicit `--foundation` option, and instead leave it up to
the build-script to determine whether to build Foundation when building
XCTest.
2016-03-22 02:12:18 -04:00
Michael Gottesman b374808501 Merge pull request #1745 from apple/build-presets-shellscript-params-explicit-1
[build-presets] Remove explicit =1 for impl params
2016-03-21 21:20:52 -07:00
Brian Gesiak b75d19bf94 Merge pull request #1748 from modocache/ci-osx-xctest-build-fix
[build-script] Link Objective-C runtime for XCTest
2016-03-21 22:46:39 -04:00
eeckstein 7e79ad1080 Merge pull request #1760 from eeckstein/gsil_option_for_stdlib
Add a build-script-impl option --build-sil-debugging-stdlib to compile with SIL debugging
2016-03-21 13:44:14 -07:00
Vedant Kumar 8d044c33e3 Remove debug statement 2016-03-21 13:00:04 -07:00
Vedant Kumar 5b58591bf9 Set LLVM_TOOL_COMPILER_RT_BUILD to build compiler-rt 2016-03-21 12:58:47 -07:00
Erik Eckstein c8d61fce9f Add a build-script-impl option --build-sil-debugging-stdlib to compile the stdlib with SIL debug info (-gsil) 2016-03-21 12:57:05 -07:00
Vedant Kumar a1e180cb24 Base check on the number of deployment targets 2016-03-21 10:53:06 -07:00
Vedant Kumar 79b7c96541 [build-script] Don't build compiler-rt when cross-compiling 2016-03-21 10:30:11 -07:00
Brian Gesiak 92f9456dac [build-script] Link Objective-C runtime for XCTest
The XCTest CI is currently broken for OS X. Invoking `xcodebuild`, even
when setting the correct `SWIFT_EXEC`, was unable to build Foundation.
The problem was that a flag to link the Objective-C runtime was not being set
as it would be when building with a Swift toolchain.

Set the flag to get the builds passing. The XCTest CI presets should
pass on all platforms with this change.
2016-03-19 19:36:10 -04:00
Brian Gesiak 2e6e7d8ec0 [gardening][build-script] Fix typo XCRun -> xcrun 2016-03-19 17:29:03 -04:00
Brian Gesiak 5b575bae18 [build-presets] Remove explicit =1 for impl params
The `utils/build-script-impl` shellscript takes arguments in the form of `--foo=bar` or `--baz`. In the second form, the argument is automatically interpreted as `--baz=1`. There is no need to manually specify `=1`, so remove it from the build presets.

There is another reason to do this: the argument parser used by the Python `utils/build-script` is not as loose as the shellscript's. For a boolean switch such as `--baz`, the argument parser throws an exception if given a numerical value such as `--baz=1`. Therefore attempts to migrate certain parameters from the shellscript to the Python build script will encounter trouble when dealing with these explicit `--baz=1` parameters in the build presets.

This commit does not touch any of the `--foo=0` parameters. Although they should be removed, it's trickier due to the inheritance of the build presets, and so I will do so in a later commit.
2016-03-19 17:16:32 -04:00
Dmitri Gribenko afcf0e34e0 Merge pull request #1722 from harlanhaskins/stdlibunittest-formatting
[StdlibUnittest] Make output for expected crashes less fatalistic
2016-03-17 21:12:31 -07:00
Vedant Kumar 53f48f8d8b Hook compiler-rt up to the swift build system 2016-03-17 17:44:05 -07:00
Harlan Haskins 607ac25f52 [StdlibUnittest] Updated swit-project-settings.el to reflect new error reporting 2016-03-17 18:26:37 -06:00
Ted Kremenek 78a5edc457 Merge pull request #1535 from jasonprado/master
Make gyb explicitly reference python2.7
2016-03-16 20:07:52 -07:00
Ted Kremenek 065b2f01a4 Merge pull request #1617 from seabaylea/clone-recursive
clone dependent submodules using --recursive
2016-03-16 20:06:29 -07:00
Jordan Rose c43943d7a8 [build-script] Remove -X option for "edit-only" Xcode projects.
This has caused plenty of confusion and should no longer be necessary anyway.
2016-03-16 09:28:52 -07:00
eeckstein 32d16276f8 Merge pull request #1696 from eeckstein/fix_release_devirtualizer
Fix release devirtualizer
2016-03-15 14:57:38 -07:00
Erik Eckstein c1bcb0b69d SIL: add new instruction set_deallocating
It will be used by the ReleaseDevirtualizer before calling the deallocator.
So far, this is NFC.
2016-03-15 12:56:54 -07:00
practicalswift 6ed6b6671e [gardening] Use '#!/usr/bin/env bash' instead of '#!/bin/bash'
Before this commit:

```
$ git grep '#!/usr/bin/env bash' | wc -l
10
$ git grep '#!/bin/bash' | wc -l
1
```

After this commit:

```
$ git grep '#!/usr/bin/env bash' | wc -l
11
$ git grep '#!/bin/bash' | wc -l
0
```
2016-03-15 11:34:35 +01:00
John Holdsworth abf2e67ed9 Fix #! typo 2016-03-14 23:07:15 +00:00
practicalswift 1edb62dc38 [Python] Make flake8 linting pass without errors/warning (w/ default rules) 2016-03-13 20:19:51 +01:00
practicalswift 07de5882ae Merge pull request #1654 from practicalswift/remove-unused-variable-ii
[Python] Remove unused variable last_line_content in viewcfg
2016-03-13 00:14:27 +01:00
practicalswift 31ace63297 Merge pull request #1655 from practicalswift/remove-unused-function-diagnostic_passlist
[Python] Remove unused function diagnostic_passlist()
2016-03-13 00:13:34 +01:00
practicalswift da24168735 [Python] Fix recently introduced PEP-8 regression 2016-03-12 20:50:08 +01:00
practicalswift ba8df10488 Merge pull request #1652 from practicalswift/fix-two-pylint-warnings
[Python] Fix two pylint warnings in swift-bench.py
2016-03-12 20:33:51 +01:00
practicalswift 776d28cc3c [Python] Remove unused function diagnostic_passlist() 2016-03-12 20:16:27 +01:00
practicalswift f83634ef7e [Python] Remove unused variable last_line_content in viewcfg
Prior to this commit:

```
$ git grep last_line_content | wc -l
1
```

After this commit:

```
$ git grep last_line_content | wc -l
0
```
2016-03-12 20:12:50 +01:00
Chris Lattner 7cbd5d96c3 update line-directive for #sourceLocation. 2016-03-12 09:25:29 -08:00
practicalswift 41540f1dad [Python] Fix two pylint warnings in swift-bench.py
Prior to this commit:

```
$ pylint utils/swift-bench.py 2>&1 | grep '(no-member)'
E:360,12: Instance of 'Test' has no 'results' member (no-member)
E:364,18: Instance of 'Test' has no 'output' member (no-member)
$
```

After this commit:

```
$ pylint utils/swift-bench.py 2>&1 | grep '(no-member)'
$
```
2016-03-12 17:31:39 +01:00
Ted Kremenek 81eb2fa424 Merge pull request #1620 from apple/build-script-xctest-xcodebuild-swift-exec
[build-script] XCTest xcodebuild uses SWIFT_EXEC
2016-03-12 08:25:34 -08:00
Chris Lattner 4992474168 Add support for #sourceLocation in its ratified forms. Switch gyb to produce
the new form.  This keeps accepting #setline for now, but we should rip it out
at some point.
2016-03-11 22:21:42 -08:00
practicalswift a27e9183ba [Python] Fix recently introduced PEP-8 regressions 2016-03-11 20:36:03 +01:00
practicalswift 8bf6df8539 Merge pull request #1615 from practicalswift/remove-global-ignores-add-local-noqa
[Python] Replace global linting excludes with local line-level excludes ("noqa")
2016-03-11 14:42:15 +01:00
practicalswift ff259d3709 [build] Remove unused variables. Improve error handling. 2016-03-11 07:22:47 +01:00
Mishal Shah 74afb7800c Merge pull request #1629 from shahmishal/master
[Utils] Add support to clone master-next branch
2016-03-10 16:39:28 -08:00
John Holdsworth 0a876fa424 Add script to build toolchain 2016-03-10 22:30:54 +00:00
Mishal Shah 2eb7432999 [Utils] Add support to clone master-next branch 2016-03-10 14:06:07 -08:00