Skip to content

Commit 3312749

Browse files
committed
✨ Align build flags with Executorch extension naming conventions
1 parent 3afd18d commit 3312749

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

extension/android/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if(EXECUTORCH_JNI_CUSTOM_LIBRARY)
145145
)
146146
endif()
147147

148-
if(EXECUTORCH_BUILD_LLAMA_JNI)
148+
if(EXECUTORCH_BUILD_EXTENSION_LLM)
149149
target_sources(executorch_jni PRIVATE jni/jni_layer_llama.cpp jni/log.cpp)
150150
list(APPEND link_libraries llama_runner llava_runner)
151151
target_compile_definitions(executorch_jni PUBLIC EXECUTORCH_BUILD_LLAMA_JNI=1)

scripts/build_android_library.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ build_android_native_library() {
5656
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
5757
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
5858
-DEXECUTORCH_BUILD_KERNELS_CUSTOM="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
59-
-DEXECUTORCH_BUILD_LLAMA_JNI="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
6059
-DEXECUTORCH_BUILD_NEURON="${EXECUTORCH_BUILD_NEURON}" \
6160
-DNEURON_BUFFER_ALLOCATOR_LIB="${NEURON_BUFFER_ALLOCATOR_LIB}" \
6261
-DEXECUTORCH_BUILD_QNN="${EXECUTORCH_BUILD_QNN}" \

0 commit comments

Comments
 (0)