Skip to content

Commit c295751

Browse files
authored
Update autoconf.lua
1 parent e7eab72 commit c295751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/modules/package/tools/autoconf.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function buildenvs(package, opt)
449449
name = name:gsub("gcc-%d+", "ld")
450450
name = name:gsub("g%+%+$", "ld")
451451
name = name:gsub("g%+%+%-%d+", "ld")
452-
if os.isfile(path.join(dir, name)) then
452+
if dir and os.isfile(path.join(dir, name)) then
453453
envs.LD = path.join(dir, name)
454454
else
455455
local ld = find_tool("ld")

0 commit comments

Comments
 (0)