From ce6d63d5a4ea3df28fc21db6b4501d4b65480584 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 22 Jun 2020 23:17:06 +0800 Subject: fix mingw/gcc envs --- xmake/modules/detect/tools/gcc/features.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/detect/tools/gcc/features.lua') diff --git a/xmake/modules/detect/tools/gcc/features.lua b/xmake/modules/detect/tools/gcc/features.lua index 6f339f664..ad4cb3214 100644 --- a/xmake/modules/detect/tools/gcc/features.lua +++ b/xmake/modules/detect/tools/gcc/features.lua @@ -32,7 +32,7 @@ function _get_macro_defines(snippets, extension, opt) -- get defines local results = {} - local defines = try { function () return os.iorunv(opt.program, table.join(opt.flags or {}, {"-dM", "-E", sourcefile})) end } + local defines = try { function () return os.iorunv(opt.program, table.join(opt.flags or {}, {"-dM", "-E", sourcefile}), {envs = opt.envs}) end } if defines then for _, define in ipairs(defines:split("\n")) do local name = define:match("#define%s+(.-)%s+") -- cgit v1.3.1