Skip to content

Commit

Permalink
Update build documentation for all-clusters-app. (#24775)
Browse files Browse the repository at this point in the history
The old documentation did not work on M1/M2 Mac hardware.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jun 27, 2023
1 parent 306bbe0 commit 1029300
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions examples/all-clusters-app/linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

## Compiling all-clusters-app for testing on Linux and Mac

To compile all-clusters-app on Intel Mac, run:
To compile all-clusters-app on Intel Mac, using the bootstrap-provided clang,
run:

```
$ ./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target darwin-x64-all-clusters-no-ble-asan-clang build"
```

at the top level of the Matter tree.

To compile on an Arm Mac, run:
To compile all-clusters-app on Intel Mac, using the system clang, run:

```
$ ./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target darwin-arm64-all-clusters-no-ble-asan-clang build"
$ ./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target darwin-x64-all-clusters-no-ble-asan build"
```

To compile on an Arm Mac, which can only be done using the system clang, run:

```
$ ./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target darwin-arm64-all-clusters-no-ble-asan build"
```

Similarly, to compile on Linux x86-64 run:
Expand Down

0 comments on commit 1029300

Please sign in to comment.