From 1029300b351dc93de18f2fa18239c8e8e6a08292 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 1 Feb 2023 14:34:35 -0500 Subject: [PATCH] Update build documentation for all-clusters-app. (#24775) The old documentation did not work on M1/M2 Mac hardware. --- examples/all-clusters-app/linux/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/examples/all-clusters-app/linux/README.md b/examples/all-clusters-app/linux/README.md index 8479fd480736fa..a84fd757703681 100644 --- a/examples/all-clusters-app/linux/README.md +++ b/examples/all-clusters-app/linux/README.md @@ -2,7 +2,8 @@ ## 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" @@ -10,10 +11,16 @@ $ ./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target darw 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: