Skip to content

Commit b9ae0ec

Browse files
Olivia-liufacebook-github-bot
authored andcommitted
Rename cmake option "EXECUTORCH_BUILD_SDK" to "EXECUTORCH_BUILD_DEVTOOLS" (#5272)
Summary: Pull Request resolved: #5272 Part of the bigger sdk -> devtools rename task. This diff renames the cmake build option for the executorch/devtools dir from "EXECUTORCH_BUILD_SDK" to "EXECUTORCH_BUILD_DEVTOOLS". It's purely a string replacement. Reviewed By: dbort Differential Revision: D62479584 fbshipit-source-id: e46d2219d43342fa93a79088e167b3ba77602474
1 parent 53c49fb commit b9ae0ec

File tree

19 files changed

+26
-26
lines changed

19 files changed

+26
-26
lines changed

.ci/scripts/build-qnn-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set_up_aot() {
2727
-DCMAKE_INSTALL_PREFIX=$PWD \
2828
-DEXECUTORCH_BUILD_QNN=ON \
2929
-DQNN_SDK_ROOT=${QNN_SDK_ROOT} \
30-
-DEXECUTORCH_BUILD_SDK=ON \
30+
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
3131
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
3232
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
3333
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED "Build the optimized kernels" OFF)
197197

198198
option(EXECUTORCH_BUILD_KERNELS_QUANTIZED "Build the quantized kernels" OFF)
199199

200-
option(EXECUTORCH_BUILD_SDK "Build the ExecuTorch Developer Tools")
200+
option(EXECUTORCH_BUILD_DEVTOOLS "Build the ExecuTorch Developer Tools")
201201

202202
option(EXECUTORCH_BUILD_SIZE_TEST "Build the size test" OFF)
203203

@@ -616,7 +616,7 @@ if(EXECUTORCH_BUILD_XNNPACK)
616616
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/xnnpack)
617617
endif()
618618

619-
if(EXECUTORCH_BUILD_SDK)
619+
if(EXECUTORCH_BUILD_DEVTOOLS)
620620
set(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER
621621
ON
622622
CACHE BOOL "EXECUTORCH_BUILD_EXTENSION_DATA_LOADER" FORCE
@@ -658,7 +658,7 @@ if(EXECUTORCH_BUILD_PYBIND)
658658
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extension/data_loader)
659659
endif()
660660

661-
if(NOT EXECUTORCH_BUILD_SDK)
661+
if(NOT EXECUTORCH_BUILD_DEVTOOLS)
662662
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/devtools)
663663
endif()
664664

backends/apple/coreml/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(NOT EXECUTORCH_ROOT)
1313
set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
1414
endif()
1515

16-
if(EXECUTORCH_BUILD_SDK)
16+
if(EXECUTORCH_BUILD_DEVTOOLS)
1717
# protobuf requires frtti
1818
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -frtti")
1919
endif()
@@ -136,7 +136,7 @@ target_include_directories(
136136
target_include_directories(coremldelegate PRIVATE ${EXECUTORCH_ROOT}/..)
137137
target_link_libraries(coremldelegate PRIVATE executorch_no_prim_ops)
138138

139-
if(EXECUTORCH_BUILD_SDK)
139+
if(EXECUTORCH_BUILD_DEVTOOLS)
140140
target_sources(coremldelegate PRIVATE ${SDK_SOURCES} ${PROTOBUF_SOURCES})
141141
target_include_directories(
142142
coremldelegate
@@ -174,7 +174,7 @@ endif()
174174
target_compile_options(coremldelegate PRIVATE "-fobjc-arc")
175175
target_compile_options(coremldelegate PRIVATE "-fno-exceptions")
176176

177-
if(EXECUTORCH_BUILD_SDK)
177+
if(EXECUTORCH_BUILD_DEVTOOLS)
178178
target_compile_options(
179179
executorch_no_prim_ops PUBLIC -DET_EVENT_TRACER_ENABLED
180180
)

backends/cadence/build_cadence_runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ main() {
2323
rm -rf cmake-out
2424
cmake -DCMAKE_INSTALL_PREFIX=cmake-out \
2525
-DCMAKE_BUILD_TYPE=Release \
26-
-DEXECUTORCH_BUILD_SDK=ON \
26+
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
2727
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
2828
-DPYTHON_EXECUTABLE=python3 \
2929
-DEXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL=ON \

backends/cadence/runtime/executor_main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cmake_install_executorch_devtools_lib() {
2020

2121
retry cmake -DCMAKE_INSTALL_PREFIX=cmake-out \
2222
-DCMAKE_BUILD_TYPE=Release \
23-
-DEXECUTORCH_BUILD_SDK=ON \
23+
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
2424
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
2525
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
2626
-Bcmake-out .

backends/qualcomm/scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if [ "$BUILD_AARCH64" = true ]; then
7979
-DCMAKE_INSTALL_PREFIX=$BUILD_ROOT \
8080
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
8181
-DEXECUTORCH_BUILD_QNN=ON \
82-
-DEXECUTORCH_BUILD_SDK=ON \
82+
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
8383
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
8484
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
8585
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
@@ -123,7 +123,7 @@ if [ "$BUILD_X86_64" = true ]; then
123123
-DCMAKE_INSTALL_PREFIX=$BUILD_ROOT \
124124
-DQNN_SDK_ROOT=${QNN_SDK_ROOT} \
125125
-DEXECUTORCH_BUILD_QNN=ON \
126-
-DEXECUTORCH_BUILD_SDK=ON \
126+
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
127127
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
128128
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
129129
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \

build/Utils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function(executorch_print_configuration_summary)
100100
"${EXECUTORCH_BUILD_KERNELS_QUANTIZED}"
101101
)
102102
message(
103-
STATUS " EXECUTORCH_BUILD_SDK : ${EXECUTORCH_BUILD_SDK}"
103+
STATUS " EXECUTORCH_BUILD_DEVTOOLS : ${EXECUTORCH_BUILD_DEVTOOLS}"
104104
)
105105
message(
106106
STATUS

devtools/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ def build_sdk():
44
def get_sdk_flags():
55
sdk_flags = []
66
if build_sdk():
7-
sdk_flags += ["-DEXECUTORCH_BUILD_SDK"]
7+
sdk_flags += ["-DEXECUTORCH_BUILD_DEVTOOLS"]
88
return sdk_flags

docs/source/build-run-qualcomm-ai-engine-direct-backend.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ cmake .. \
134134
-DCMAKE_INSTALL_PREFIX=$PWD \
135135
-DEXECUTORCH_BUILD_QNN=ON \
136136
-DQNN_SDK_ROOT=${QNN_SDK_ROOT} \
137-
-DEXECUTORCH_BUILD_SDK=ON \
137+
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
138138
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
139139
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
140140
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
@@ -166,7 +166,7 @@ cmake .. \
166166
-DCMAKE_INSTALL_PREFIX=$PWD \
167167
-DEXECUTORCH_BUILD_QNN=ON \
168168
-DQNN_SDK_ROOT=$QNN_SDK_ROOT \
169-
-DEXECUTORCH_BUILD_SDK=ON \
169+
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
170170
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
171171
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
172172
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \

docs/source/llm/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ if (result.buf != nullptr && result.size > 0) {
808808
Additionally, update CMakeLists.txt to build with Developer Tools and enable events to be traced and logged into ETDump:
809809

810810
```
811-
option(EXECUTORCH_BUILD_SDK "" ON)
811+
option(EXECUTORCH_BUILD_DEVTOOLS "" ON)
812812
813813
# ...
814814

0 commit comments

Comments
 (0)