Skip to content

Commit bc29950

Browse files
committed
Add llm runner into apple frameworks build
Remove `EXECUTORCH_BUILD_EXTENSION_LLM` and promote `EXECUTORCH_BUILD_EXTENSION_LLM_RUNNER` to be an overridable option. Enable it by default in llm and apple preset.
1 parent f49cf00 commit bc29950

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

tools/cmake/preset/apple_common.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ add_compile_options(
1313
-fdebug-prefix-map=${PROJECT_SOURCE_DIR}=/executorch
1414
)
1515

16+
set_overridable_option(BUILD_TESTING OFF)
1617
set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
1718
set_overridable_option(EXECUTORCH_BUILD_COREML ON)
1819
set_overridable_option(EXECUTORCH_BUILD_MPS ON)
1920
set_overridable_option(EXECUTORCH_XNNPACK_SHARED_WORKSPACE ON)
2021
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_APPLE ON)
2122
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON)
23+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_LLM_RUNNER ON)
2224
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_MODULE ON)
2325
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON)
2426
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_TENSOR ON)

tools/cmake/preset/default.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ define_overridable_option(
9090
BOOL OFF
9191
)
9292
define_overridable_option(
93-
EXECUTORCH_BUILD_EXTENSION_LLM
93+
EXECUTORCH_BUILD_EXTENSION_LLM_RUNNER
9494
"Build the LLM extension"
9595
BOOL OFF
9696
)

tools/cmake/preset/llm.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
# saving a few kB is less important than showing useful error information to
99
# users.
1010
# keep sorted
11+
set_overridable_option(BUILD_TESTING OFF)
1112
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON)
1213
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON)
14+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_LLM_RUNNER ON)
1315
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_MODULE ON)
1416
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_TENSOR ON)
1517
set_overridable_option(EXECUTORCH_BUILD_KERNELS_CUSTOM ON)

0 commit comments

Comments
 (0)