From 79a8994727ca4c88c7a839c5848e5fae80b25b29 Mon Sep 17 00:00:00 2001 From: UE4SS Date: Mon, 2 Dec 2024 05:53:15 +0100 Subject: Pass --sdk to dependencies --- xmake/modules/package/tools/xmake.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index c779a9ff5..25bc0f021 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -89,6 +89,13 @@ function _get_configs_for_windows(package, configs, opt) if package:config("toolchains") and _is_toolchain_compatible_with_host(package) then _get_configs_for_host_toolchain(package, configs, opt) end + + if not is_host("windows") then + local sdkdir = _get_config_from_toolchains(package, "sdkdir") or get_config("sdk") + if sdkdir and #sdkdir > 0 then + table.insert(configs, "--sdk=" .. sdkdir) + end + end end -- get configs for appleos -- cgit v1.3.1