From 7fd431aff366e50cb29056c6bf618186602396fc Mon Sep 17 00:00:00 2001 From: jathu Date: Fri, 6 Jun 2025 12:52:22 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Auto-resolve=20buck2=20binary=20if?= =?UTF-8?q?=20not=20provided?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10d4fcd95ba..0540c2da039 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,9 +75,13 @@ if(NOT PYTHON_EXECUTABLE) endif() announce_configured_options(PYTHON_EXECUTABLE) +if(NOT BUCK2) + resolve_buck2() +endif() +announce_configured_options(BUCK2) + announce_configured_options(CMAKE_CXX_COMPILER_ID) announce_configured_options(CMAKE_TOOLCHAIN_FILE) -announce_configured_options(BUCK2) load_build_preset() include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/default.cmake) @@ -290,9 +294,6 @@ set(_common_include_directories # if(NOT EXECUTORCH_SRCS_FILE) - # Find or download buck2 binary. - resolve_buck2() - # A file wasn't provided. Run a script to extract the source lists from the # buck2 build system and write them to a file we can include. #