@@ -74,6 +74,7 @@ The following build options are available:
7474The following build targets are available:
7575
7676* ` swift-benchmark-macosx-x86_64 `
77+ * ` swift-benchmark-macosx-arm64 `
7778* ` swift-benchmark-iphoneos-arm64e `
7879* ` swift-benchmark-iphoneos-arm64 `
7980* ` swift-benchmark-iphoneos-armv7 `
@@ -84,7 +85,7 @@ Build steps (with example options):
8485
85861 . ` $ mkdir build; cd build `
86872 . ` $ 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) `
8889
8990Benchmark binaries are placed in ` bin ` .
9091
@@ -98,7 +99,7 @@ relative to the benchmark binary at the time it was executed
9899For example, to benchmark against a locally built ` swiftc ` , including
99100any standard library changes in that build, you might configure using:
100101
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
102103 ninja swift-benchmark-iphoneos-arm64
103104
104105To build against the installed Xcode, simply omit SWIFT_EXEC:
@@ -319,12 +320,12 @@ swift-source$ ./swift/utils/build-script -R -B
319320````
320321you can rebuild just the benchmarks:
321322````
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)
324325````
325326
326327When modifying the testing infrastructure, you should verify that your changes
327328pass all the tests:
328329````
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
330331````
0 commit comments