diff options
| author | ruki <[email protected]> | 2023-02-25 00:42:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-25 00:42:40 +0800 |
| commit | f6b383d36a3679bc968bd4a3e7ceade92d950fcb (patch) | |
| tree | edb8549a5363d09799280dbd1aae6588dd45d941 /xmake/modules | |
| parent | 964da8c32bfdc0150b3b57c831635569a84bb873 (diff) | |
pass sdk dir
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 44f124468..71e23a328 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -96,7 +96,7 @@ function _get_configs(package, configs, opt) end end else - local names = {"ndk", "ndk_sdkver", "vs", "vs_toolset", "mingw", "ld", "sh", "ar", "cc", "cxx", "mm", "mxx"} + local names = {"sdk", "ndk", "ndk_sdkver", "vs", "vs_toolset", "mingw", "ld", "sh", "ar", "cc", "cxx", "mm", "mxx"} for _, name in ipairs(names) do local value = get_config(name) if value ~= nil then @@ -104,6 +104,7 @@ function _get_configs(package, configs, opt) end end end + local policies = get_config("policies") if package:config("lto") and (not policies or not policies:find("build.optimization.lto", 1, true)) then if policies then |
