Skip to content

Commit 4456407

Browse files
authored
Update examples/models/llama/README.md to fix build broken (#12393)
Fix the following error ``` CMake Error at tools/cmake/common/preset.cmake:122 (message): Use of 'EXECUTORCH_BUILD_EXTENSION_MODULE' requires 'EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR' Call Stack (most recent call first): tools/cmake/preset/default.cmake:300 (check_required_options_on) CMakeLists.txt:87 (include) ``` Signed-off-by: Jie Fu <[email protected]>
1 parent 012c62d commit 4456407

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/models/llama/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
277277
-DCMAKE_INSTALL_PREFIX=cmake-out-android \
278278
-DCMAKE_BUILD_TYPE=Release \
279279
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
280+
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
280281
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
281282
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
282283
-DEXECUTORCH_ENABLE_LOGGING=1 \
@@ -381,6 +382,7 @@ cmake -DPYTHON_EXECUTABLE=python \
381382
-DEXECUTORCH_ENABLE_LOGGING=1 \
382383
-DCMAKE_BUILD_TYPE=Release \
383384
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
385+
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
384386
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
385387
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
386388
-DEXECUTORCH_BUILD_XNNPACK=OFF \

0 commit comments

Comments
 (0)