From cc70d3d1e6541a0ae21169fa371283f2a04863b9 Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Tue, 22 Oct 2024 16:11:23 -0700 Subject: [PATCH] [Android] Update instructions for build types User can use `export EXECUTORCH_CMAKE_BUILD_TYPE=Debug` Differential Revision: [D64795144](https://our.internmc.facebook.com/intern/diff/D64795144/) [ghstack-poisoned] --- .../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 3570c9acd37..cc918d7ed7b 100644 --- a/examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md +++ b/examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md @@ -163,6 +163,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