From 030d7105837e998ded7e8969beb6d9d13d18b015 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 1 Jul 2024 23:02:23 +0800 Subject: improve to find cosmocc --- xmake/modules/detect/tools/find_cosmocc.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/modules/detect') diff --git a/xmake/modules/detect/tools/find_cosmocc.lua b/xmake/modules/detect/tools/find_cosmocc.lua index 964b564c8..910643626 100644 --- a/xmake/modules/detect/tools/find_cosmocc.lua +++ b/xmake/modules/detect/tools/find_cosmocc.lua @@ -37,6 +37,7 @@ import("lib.detect.find_programver") function main(opt) opt = opt or {} opt.shell = true + opt.envs = {PATH = os.getenv("PATH")} local program = find_program(opt.program or "cosmocc", opt) if program and is_host("windows") then program = program:gsub("\\", "/") -- cgit v1.3.1