From 719114a58562534c5917084fb360e9e4348780fa Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Wed, 20 Nov 2024 15:32:27 -0800 Subject: [PATCH] Update instructions for build types (#6995) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/6995 User can use `export EXECUTORCH_CMAKE_BUILD_TYPE=Debug` Reviewed By: helunwencser Differential Revision: D64795144 --- .../android/LlamaDemo/docs/delegates/xnnpack_README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md b/examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md index 2a6ddbbfe09..3a2da68e6d6 100644 --- a/examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md +++ b/examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md @@ -158,6 +158,8 @@ This is running the shell script which configures the required core ExecuTorch, **Note**: If you are building the Android app mentioned in the next section on a separate machine (i.e. MacOS but building and exporting on Linux), make sure you copy the aar file generated from setup script to “examples/demo-apps/android/LlamaDemo/app/libs” before building the Android app. +**Note**: By default, this generates native libraries with "Release" build. If you want to get debugging information, use "Debug" build by `export EXECUTORCH_CMAKE_BUILD_TYPE=Debug` before running `setup.sh`. + ### Alternative: Use prebuilt AAR library 1. Open a terminal window and navigate to the root directory of the executorch. 2. Run the following command to download the prebuilt library