Skip to content

Commit 137052e

Browse files
committed
Address more comments
1 parent 1693219 commit 137052e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

backends/qualcomm/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ get_filename_component(
2424
)
2525

2626
# We only download QNN SDK when we build pip wheel for ExecuTorch.
27-
if(EXECUTORCH_BUILD_WHEEL_DEV_USE_ONLY)
27+
# Please don't change this code unless you know what you are doing.
28+
if(EXECUTORCH_BUILD_WHEEL_DO_NOT_USE)
2829
set(_qnn_default_sdk_dir "${CMAKE_CURRENT_BINARY_DIR}/sdk/qnn")
2930

3031
if(EXISTS "${_qnn_default_sdk_dir}" AND EXISTS "${_qnn_default_sdk_dir}/lib")

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,6 @@ def run(self): # noqa C901
676676
# like `TorchConfig.cmake` that are provided by pip packages.
677677
f"-DCMAKE_PREFIX_PATH={cmake_prefix_path}",
678678
f"-DCMAKE_BUILD_TYPE={cmake_build_type}",
679-
# Turn on the wheel building option for downstream CMakeLists.txt.
680-
f"-DEXECUTORCH_BUILD_WHEEL_DEV_USE_ONLY=ON",
681679
]
682680

683681
# Use ClangCL on Windows.

tools/cmake/preset/default.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ define_overridable_option(
289289
FALSE
290290
)
291291
define_overridable_option(
292-
EXECUTORCH_BUILD_WHEEL_DEV_USE_ONLY
292+
EXECUTORCH_BUILD_WHEEL_DO_NOT_USE
293293
"On if in the wheel building process. Should only be used to guard code that is only needed for building the wheel."
294294
BOOL
295295
FALSE

tools/cmake/preset/pybind.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON)
2222
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON)
2323
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_MODULE ON)
2424
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP ON)
25+
set_overridable_option(EXECUTORCH_BUILD_WHEEL_DO_NOT_USE ON)
2526

2627
# TODO(larryliu0820): Temporarily disable building llm_runner for Windows wheel
2728
# due to the issue of tokenizer file path length limitation.

0 commit comments

Comments
 (0)