-
Notifications
You must be signed in to change notification settings - Fork 742
Open
Labels
module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchIssues related to the cmake and buck2 builds, and to installing ExecuTorch
Description
When creating presets, we carried over the flags as is from the previous build configuration. These flags might be stale, and no longer necessary. So comb through each of the flag in the pybind preset and determine if they are still required. If not, remove them to improve our build speed + decrease the wheel size!
executorch/tools/cmake/preset/pybind.cmake
Lines 1 to 31 in 224d4b7
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the BSD-style license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| set_overridable_option(EXECUTORCH_BUILD_PYBIND ON) | |
| set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON) | |
| set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT ON) | |
| # Enable logging even when in release mode. We are building for desktop, where | |
| # saving a few kB is less important than showing useful error information to | |
| # users. | |
| set_overridable_option(EXECUTORCH_ENABLE_LOGGING ON) | |
| set_overridable_option(EXECUTORCH_LOG_LEVEL Info) | |
| set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON) | |
| set_overridable_option(EXECUTORCH_BUILD_EXTENSION_TENSOR ON) | |
| set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON) | |
| set_overridable_option(EXECUTORCH_BUILD_KERNELS_CUSTOM ON) | |
| set_overridable_option(EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT ON) | |
| set_overridable_option(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON) | |
| if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") | |
| set_overridable_option(EXECUTORCH_BUILD_COREML ON) | |
| elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") | |
| set_overridable_option(EXECUTORCH_BUILD_COREML ON) | |
| elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WIN32") | |
| # Windows or other OS-specific code here | |
| else() | |
| message(FATAL_ERROR "Unsupported CMAKE_SYSTEM_NAME for pybind: ${CMAKE_SYSTEM_NAME}") | |
| endif() |
Metadata
Metadata
Assignees
Labels
module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchIssues related to the cmake and buck2 builds, and to installing ExecuTorch
Type
Projects
Status
To triage