diff options
| author | Redbeanw44602 <[email protected]> | 2025-10-23 00:03:23 +0800 |
|---|---|---|
| committer | Redbeanw44602 <[email protected]> | 2025-10-23 00:03:23 +0800 |
| commit | 2ba8e26923f257f3859ac32fdc144e0193fd723f (patch) | |
| tree | 234749323a41722518b81c60d067fcac83deca71 /xmake/modules/package/tools/autoconf.lua | |
| parent | 6b27644dd38664a1a2253faec53c88f0ea9fcf06 (diff) | |
fix use zigcc-lld with autotools.
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 88d9c0ce4..56168fd6b 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -458,6 +458,9 @@ function buildenvs(package, opt) end end end + if ld and package:has_tool("ld", "zig_cc") then + envs.LD = package:build_getenv("ld.lld") + end -- we need use clang++ as cxx, autoconf will use it as linker -- https://github.com/xmake-io/xmake/issues/2170 local cxx = envs.CXX |
