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() {
1919 echo " Installing executorch and xnnpack backend"
2020 clean_executorch_install_folders
2121 mkdir cmake-android-out
22- ANDROID_NDK=/opt/ndk
22+ ANDROID_NDK=${ANDROID_NDK :- / opt/ ndk}
2323 BUCK2=buck2
2424 ANDROID_ABI=arm64-v8a
2525 cmake --preset llm \
Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ endif()
161161
162162if (EXECUTORCH_BUILD_TESTS)
163163 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 )
164168endif ()
165169
166170add_subdirectory (third-party)
@@ -737,7 +741,10 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
737741 endif ()
738742
739743 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+ )
741748 endif ()
742749endif ()
743750
You can’t perform that action at this time.
0 commit comments