Commit Graph

1584 Commits

Author SHA1 Message Date
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
Brian Gesiak
598fea26a7 [build-script] XCTest xcodebuild uses SWIFT_EXEC
Because the `xcodebuild` invocation used to compile swift-corelibs-xctest on OS X uses a toolchain that is usually out of date, it often fails (for example, when building the newly migrated Swift 3 code).

Pass the path to the freshly built `swiftc` to `xcodebuild` in order to use the latest Swift compiler.
2016-03-10 11:49:51 -05:00
seabaylea
b09b03bd8d clone dependent submodules using --recursive 2016-03-10 15:44:51 +00:00
practicalswift
d5326bfdc4 [Python] Replace global linting excludes with local line-level excludes ("noqa")
Replace the project global linting rule excludes (as defined in .pep8) with
fine-grained "# noqa" annotations.

By using noqa annotation the excludes are made on a per line basis instead of
globally.

These annotations are used where we make deliberate deviations from the standard
linting rules.

To lint the Python code in the project:

  $ flake8

To install flake8:

  $ pip install flake8

See https://flake8.readthedocs.org/en/latest/ for details.

To enable checking of the PEP-8 naming conventions, install the optional
extension pep8-naming:

  $ pip install pep8-naming

To enable checking of blind "except:" statements, install the optional
extension flake8-blind-except:

  $ pip install flake8-blind-except

To enable checking of import statement order, install the optional
extension flake8-import-order:

  $ pip install flake8-import-order
2016-03-10 16:22:48 +01:00
practicalswift
42b7e3f8d6 Merge pull request #1598 from practicalswift/fix-80-column-violations-in-python-code
[Python] Fix 80 column violations
2016-03-10 10:35:25 +01:00
Max Moiseev
02006f20bc Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-03-09 16:05:03 -08:00
practicalswift
0796eaad1f [Python] Fix 80-column violations 2016-03-09 23:52:11 +01:00
practicalswift
479d7929fd Merge pull request #1595 from practicalswift/py3k-compatible-except
[Python] Use Py3k compatible "except" format
2016-03-09 23:16:47 +01:00
practicalswift
f4e1e458a0 Merge pull request #1594 from practicalswift/fix-old-style-classes
[Python] Use new style class definitions: "class A" → "class A(object)"
2016-03-09 23:16:26 +01:00
Michael Gottesman
71c591b86e [lto] When determining the number of lto threads to use, take the minimum of ${BUILD_JOBS} and a heuristic that scales with the memory size of the machine.
This ensures that even if we have a machine with a huge amount of ram, we
respect ${BUILD_JOBS}.
2016-03-09 13:31:35 -08:00
Michael Gottesman
91f106e199 [leak-checker] Make sure to actually enable the leak checker when compiling with the leak checker presets.
Fixes refactoring error in 14c0a3e3f6fd61d36b795b4e7a9bf820d1aafb45...

*shakes head*.
2016-03-09 09:44:29 -08:00
practicalswift
6641eba4de [Python] Use Py3k compatible "except" format 2016-03-09 10:04:13 +01:00
Michael Gottesman
14c0a3e3f6 Refactor the leaks runner preset into stdlib-R and stdlib-RA presets. 2016-03-09 01:02:23 -08:00
Dmitri Gribenko
c267ec9f31 Merge pull request #1589 from apple/add-iphoneos-armv7s
Allow swift to be built for iphoneos-armv7s, a variation on armv7,
2016-03-09 00:55:24 -08:00
practicalswift
c69ffe4eb6 [Python] Use new style class definitions: "class A" → "class A(object)" 2016-03-09 09:42:42 +01:00
practicalswift
30b66ea036 Merge pull request #1584 from practicalswift/python-3-compatible-print
[Python] Use Py3k compatible print operator: print "foo" → print("foo")
2016-03-09 08:00:49 +01:00
Brian Gesiak
c9000af795 Merge pull request #1526 from practicalswift/fix-pep8-violations-ii
[Python] Fix five classes of PEP-8 violations (E101/E111/E128/E302/W191)
2016-03-08 23:55:46 -05:00
Jason Molenda
1f31fff611 Allow swift to be built for iphoneos-armv7s, a variation on armv7,
used with the Apple A6 and later 32-bit devices.
2016-03-08 16:49:31 -08:00
practicalswift
0fd0c48648 [Python] Use Py3k compatible print operator: print "foo" → print("foo") 2016-03-08 23:10:52 +01:00
Max Moiseev
1fae0d1325 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-03-08 12:48:48 -08:00
practicalswift
4b86ad2d9f Merge pull request #1571 from practicalswift/fix-blind-excepts
[Python] Fix blind "except:" statements
2016-03-08 20:29:56 +01:00
practicalswift
ebccd4f47b Merge pull request #1576 from practicalswift/not-implemented-error
[Python] NotImplemented → NotImplementedError
2016-03-08 20:12:44 +01:00
practicalswift
38a9ce18b7 Merge pull request #1577 from practicalswift/fix-bug-in-swift-build-support
[Python] Fix AttributeError: CalledProcessError.strerror does not exist
2016-03-08 20:03:53 +01:00
Brian Gesiak
792560fe5e [gardening][build-script] Fix XCTest comment typo 2016-03-08 13:16:10 -05:00