@@ -74,6 +74,7 @@ The following build options are available:
74
74
The following build targets are available:
75
75
76
76
* ` swift-benchmark-macosx-x86_64 `
77
+ * ` swift-benchmark-macosx-arm64 `
77
78
* ` swift-benchmark-iphoneos-arm64e `
78
79
* ` swift-benchmark-iphoneos-arm64 `
79
80
* ` swift-benchmark-iphoneos-armv7 `
@@ -84,7 +85,7 @@ Build steps (with example options):
84
85
85
86
1 . ` $ mkdir build; cd build `
86
87
2 . ` $ cmake [path to swift src]/benchmark -G Ninja -DSWIFT_EXEC=[path to built swiftc] `
87
- 3 . ` $ ninja swift-benchmark-macosx-x86_64 `
88
+ 3 . ` $ ninja swift-benchmark-macosx-$(uname -m) `
88
89
89
90
Benchmark binaries are placed in ` bin ` .
90
91
@@ -98,7 +99,7 @@ relative to the benchmark binary at the time it was executed
98
99
For example, to benchmark against a locally built ` swiftc ` , including
99
100
any standard library changes in that build, you might configure using:
100
101
101
- cmake <src>/benchmark -G Ninja -DSWIFT_EXEC=<build>/swift-macosx-x86_64 /bin/swiftc
102
+ cmake <src>/benchmark -G Ninja -DSWIFT_EXEC=<build>/swift-macosx-$(uname -m) /bin/swiftc
102
103
ninja swift-benchmark-iphoneos-arm64
103
104
104
105
To build against the installed Xcode, simply omit SWIFT_EXEC:
@@ -319,12 +320,12 @@ swift-source$ ./swift/utils/build-script -R -B
319
320
````
320
321
you can rebuild just the benchmarks:
321
322
````
322
- swift-source$ export SWIFT_BUILD_DIR=`pwd`/build/Ninja-ReleaseAssert/swift-macosx-x86_64
323
- swift-source$ ninja -C ${SWIFT_BUILD_DIR} swift-benchmark-macosx-x86_64
323
+ swift-source$ export SWIFT_BUILD_DIR=`pwd`/build/Ninja-ReleaseAssert/swift-macosx-$(uname -m)
324
+ swift-source$ ninja -C ${SWIFT_BUILD_DIR} swift-benchmark-macosx-$(uname -m)
324
325
````
325
326
326
327
When modifying the testing infrastructure, you should verify that your changes
327
328
pass all the tests:
328
329
````
329
- swift-source$ ./llvm/utils/lit/lit.py -sv ${SWIFT_BUILD_DIR}/test-macosx-x86_64 /benchmark
330
+ swift-source$ ./llvm/utils/lit/lit.py -sv ${SWIFT_BUILD_DIR}/test-macosx-$(uname -m) /benchmark
330
331
````
0 commit comments