diff options
| author | Redbeanw44602 <[email protected]> | 2025-10-27 21:04:43 +0800 |
|---|---|---|
| committer | Redbeanw44602 <[email protected]> | 2025-10-27 21:04:43 +0800 |
| commit | ba2ee47135eb641c63d76a6f9e818ebadb375901 (patch) | |
| tree | 2c1cbcdd5825f5586c2430e778e8196e25e9b4af /xmake/modules/package/tools/autoconf.lua | |
| parent | 7674ce8516075d5962273d5d0872b2e80375c920 (diff) | |
limit patch to clang based toolchains.
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index d5d48f500..5c791c461 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -284,6 +284,11 @@ function _apply_libtool_patch_for_cross(package, opt) return end + -- this patch is only needed for clang-based toolchains + if not package:has_tool("cxx", "clang", "zig_cc") then + return + end + -- detect the version of generated libtool script local libtool_version = find_programver("./libtool", {nocache = true}) if option.get("verbose") then @@ -342,7 +347,7 @@ function _apply_libtool_patch_for_cross(package, opt) local succeed = false for _, patch_version in ipairs(suitable_patch_versions) do if option.get("verbose") then - cprint("${dim}> try applying the patch ... ${color.success} %s", patch_version) + cprint("${dim}> try applying the patch ... ${color.success} >= %s", patch_version) end local patch_file = path.join(patch_dir, patch_version:shortstr() .. ".patch") local result = try { |
