From 7a9304f8872eb4183a7a74279a7aefcdac25b468 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 20 Mar 2026 12:38:27 +0000 Subject: [PATCH] depends: Fix cross-compiling on macOS for Windows 1. Use `build_os` instead of `host_os` for native packages. 2. `XCODE_VERSION` is available only for `darwin` hosts. Therefore, simply disable the Xcode version check for `native_qt`. --- depends/packages/native_qt.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/depends/packages/native_qt.mk b/depends/packages/native_qt.mk index 310c9f1329e..3e1e5626667 100644 --- a/depends/packages/native_qt.mk +++ b/depends/packages/native_qt.mk @@ -97,9 +97,9 @@ ifneq ($(V),) $(package)_cmake_opts += --log-level=STATUS endif -ifeq ($(host_os),darwin) -$(package)_cmake_opts += -DQT_INTERNAL_XCODE_VERSION=$(XCODE_VERSION) +ifeq ($(build_os),darwin) $(package)_cmake_opts += -DQT_NO_APPLE_SDK_MAX_VERSION_CHECK=ON +$(package)_cmake_opts += -DQT_NO_XCODE_MIN_VERSION_CHECK=ON endif endef