Skip to content

Commit

Permalink
WiP: Build config for ARM64 on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnall committed Sep 6, 2024
1 parent d3d60ac commit 67ee77b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,18 @@ adb shell chmod +x /data/local/tmp/crc32c_tests
adb shell 'cd /data/local/tmp && ./crc32c_tests'
adb shell rm /data/local/tmp/crc32c_tests
```


### iOS testing

The following command builds the project against the iOS SDK, which is useful
for benchmarking against Apple's ARM chips ("Apple Sillicon").

```bash
cmake .. -GXcode \
-DCMAKE_SYSTEM_NAME=iOS \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_OSX_DEPLOYMENT_TARGET=13 \
-DCMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH=NO DCRC32C_USE_GLOG=0 \
-DCMAKE_BUILD_TYPE=Release && cmake --build .
```
2 changes: 1 addition & 1 deletion third_party/benchmark
Submodule benchmark updated 169 files
2 changes: 1 addition & 1 deletion third_party/googletest
Submodule googletest updated 219 files

0 comments on commit 67ee77b

Please sign in to comment.