Skip to content

Commit 02006f2

Browse files
author
Max Moiseev
committed
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2 parents 4da439d + 479d792 commit 02006f2

File tree

144 files changed

+4583
-3016
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+4583
-3016
lines changed

Diff for: .pep8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[flake8]
22
filename = *.py,Benchmark_Driver,Benchmark_DTrace.in,Benchmark_GuardMalloc.in,Benchmark_RuntimeLeaksRunner.in,build-script,gyb,line-directive,ns-html2rst,recursive-lipo,rth,submit-benchmark-results,update-checkout,viewcfg
3-
ignore = D100,D101,D102,D103,D104,D105,E101,E111,E128,E302,E402,E501,W191
3+
ignore = D100,D101,D102,D103,D104,D105,E402,E501

Diff for: README.md

+16-6
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ uploading SSH keys to GitHub):
8383
cd swift
8484
./utils/update-checkout --clone-with-ssh
8585

86+
#### CMake
8687
[CMake](http://cmake.org) is the core infrastructure used to configure builds of
8788
Swift and its companion projects; at least version 2.8.12.2 is required. Your
8889
favorite Linux distribution likely already has a CMake package you can install.
@@ -92,23 +93,32 @@ command line tools to your `PATH`:
9293

9394
export PATH=/Applications/CMake.app/Contents/bin:$PATH
9495

96+
#### Ninja
9597
[Ninja](https://ninja-build.org) is the current recommended build system
9698
for building Swift and is the default configuration generated by CMake. If
9799
you're on OS X or don't install it as part of your Linux distribution, clone
98100
it next to the other projects and it will be bootstrapped automatically:
99101

100-
git clone https://github.com/ninja-build/ninja.git
102+
##### Build from source
103+
**Via https**
101104

102-
or
105+
git clone https://github.com/ninja-build/ninja.git && cd ninja
106+
git checkout release
107+
cat README
103108

104-
git clone git@github.com:ninja-build/ninja.git
109+
**Via ssh**
105110

106-
You can also install CMake and Ninja on OS X using a third-party
107-
packaging tool like [Homebrew](http://brew.sh)
111+
git clone git@github.com:ninja-build/ninja.git && cd ninja
112+
git checkout release
113+
cat README
114+
115+
#### Install via third-party packaging tool (OSX only)
116+
117+
**[Homebrew](http://brew.sh/)**
108118

109119
brew install cmake ninja
110120

111-
…or [MacPorts](https://macports.org).
121+
**[MacPorts](https://macports.org)**
112122

113123
sudo port install cmake ninja
114124

Diff for: benchmark/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ list(APPEND CMAKE_MODULE_PATH
1515
include(AddSwiftBenchmarkSuite)
1616

1717
set(SWIFT_BENCH_MODULES
18+
single-source/unit-tests/StackPromo
1819
single-source/Ackermann
1920
single-source/AngryPhonebook
2021
single-source/Array2D

Diff for: benchmark/scripts/Benchmark_DTrace.in

+9-4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import perf_test_driver
2727
XFAIL_LIST = [
2828
]
2929

30+
3031
class DTraceResult(perf_test_driver.Result):
3132

3233
def __init__(self, name, status, output, csv_output):
@@ -59,11 +60,14 @@ class DTraceResult(perf_test_driver.Result):
5960

6061
print(DTraceResult.data_format(max_test_len).format(*result))
6162

63+
6264
class DTraceBenchmarkDriver(perf_test_driver.BenchmarkDriver):
65+
6366
def __init__(self, binary, xfail_list, csv_output):
64-
perf_test_driver.BenchmarkDriver.__init__(self, binary, xfail_list,
65-
enable_parallel=False,
66-
opt_levels=['O'])
67+
perf_test_driver.BenchmarkDriver.__init__(
68+
self, binary, xfail_list,
69+
enable_parallel=False,
70+
opt_levels=['O'])
6771
self.csv_output = csv_output
6872

6973
def print_data_header(self, max_test_len):
@@ -74,7 +78,7 @@ class DTraceBenchmarkDriver(perf_test_driver.BenchmarkDriver):
7478

7579
def process_input(self, data):
7680
test_name = '({}_{})'.format(data['opt'], data['test_name'])
77-
print "Running {}...".format(test_name)
81+
print("Running {}...".format(test_name))
7882
sys.stdout.flush()
7983

8084
def get_results_with_iters(iters):
@@ -94,6 +98,7 @@ class DTraceBenchmarkDriver(perf_test_driver.BenchmarkDriver):
9498

9599
SWIFT_BIN_DIR = os.path.dirname(os.path.abspath(__file__))
96100

101+
97102
def parse_args():
98103
parser = argparse.ArgumentParser()
99104
parser.add_argument('-filter', type=str, default=None,

0 commit comments

Comments
 (0)