File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ install_executorch_and_backend_lib() {
19
19
echo " Installing executorch and xnnpack backend"
20
20
clean_executorch_install_folders
21
21
mkdir cmake-android-out
22
- ANDROID_NDK=/opt/ndk
22
+ ANDROID_NDK=${ANDROID_NDK :- / opt/ ndk}
23
23
BUCK2=buck2
24
24
ANDROID_ABI=arm64-v8a
25
25
cmake --preset llm \
Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ endif()
161
161
162
162
if (EXECUTORCH_BUILD_TESTS )
163
163
include (CTest )
164
+ else ()
165
+ # It looks like some of our third-party deps will try to turn this on if it's
166
+ # not explicitly set, leading to confusing behavior.
167
+ set (BUILD_TESTING OFF )
164
168
endif ()
165
169
166
170
add_subdirectory (third-party )
@@ -737,7 +741,10 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
737
741
endif ()
738
742
739
743
set (CMAKE_EXECUTABLE_SUFFIX ".html" )
740
- target_link_options (executor_runner PUBLIC -sALLOW_MEMORY_GROWTH --embed-file "${WASM_MODEL_DIR} @/" )
744
+ target_link_options (
745
+ executor_runner PUBLIC -sALLOW_MEMORY_GROWTH --embed-file
746
+ "${WASM_MODEL_DIR} @/"
747
+ )
741
748
endif ()
742
749
endif ()
743
750
You can’t perform that action at this time.
0 commit comments