summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-14 14:41:48 +0800
committerGitHub <[email protected]>2025-05-14 14:41:48 +0800
commitc29575128eaac627315143d81cedd9b0c9cd72fc (patch)
treea7200e7ca4057caa15f1f57847f9be0c08e19424
parente7eab7231c9838569fd33d8fd53b9cf30b04327f (diff)
Update autoconf.lua
-rw-r--r--xmake/modules/package/tools/autoconf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 9559a2ad7..b69506fc5 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -449,7 +449,7 @@ function buildenvs(package, opt)
name = name:gsub("gcc-%d+", "ld")
name = name:gsub("g%+%+$", "ld")
name = name:gsub("g%+%+%-%d+", "ld")
- if os.isfile(path.join(dir, name)) then
+ if dir and os.isfile(path.join(dir, name)) then
envs.LD = path.join(dir, name)
else
local ld = find_tool("ld")