From 371f71ec1effe00b13fb9f2dac55602ce621ccd4 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Mon, 23 Dec 2024 10:56:25 -0800 Subject: [PATCH] update --- tools/ci_build/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 313daf9162cd5..d0809759b4e50 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1115,7 +1115,7 @@ def generate_build_tree( vcpkg_install_options = ["--x-feature=tests"] vcpkg_installation_root = os.environ.get("VCPKG_INSTALLATION_ROOT") if vcpkg_installation_root is None: - vcpkg_installation_root = os.path.join(build_dir, "vcpkg") + vcpkg_installation_root = os.path.join(os.path.abspath(build_dir), "vcpkg") if not os.path.exists(vcpkg_installation_root): run_subprocess(["git", "clone", "https://github.com/microsoft/vcpkg.git", "--recursive"], cwd=build_dir) vcpkg_toolchain_path = os.path.join(vcpkg_installation_root, "scripts", "buildsystems", "vcpkg.cmake") @@ -1147,7 +1147,7 @@ def generate_build_tree( else: raise BuildError("unknown python arch") if triplet: - add_default_definition(cmake_extra_defines, "VCPKG_TARGET_TRIPLET", triplet) + add_default_definition(cmake_extra_defines, "VCPKG_TARGET_TRIPLET", triplet) # By default on Windows we currently support only cross compiling for ARM/ARM64 # (no native compilation supported through this script).