diff options
| author | ruki <[email protected]> | 2024-12-02 18:33:13 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-12-02 18:33:13 +0800 |
| commit | 3a7e44a68f05137631141d4b2b8f6a5e2c5641a2 (patch) | |
| tree | 003bc2368cfd673ac61f3f9fec4e476a8199c3dc | |
| parent | 71a5624d37cdfaaba039a874e67341ee354357b7 (diff) | |
| parent | 79a8994727ca4c88c7a839c5848e5fae80b25b29 (diff) | |
Merge pull request #5918 from UE4SS/dev
Pass --sdk to dependencies
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
