summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-02 09:27:51 +0800
committerGitHub <[email protected]>2024-07-02 09:27:51 +0800
commit9fd0a10896cc92a94afb07675c75e7bea86bf83d (patch)
tree3206b27ab45739aafedea98fefb8f1c7e21dedd7 /xmake/modules
parent8d9d81c686d89d636fbfd225fec127878c87d8b5 (diff)
parent030d7105837e998ded7e8969beb6d9d13d18b015 (diff)
Merge pull request #5281 from xmake-io/cosmocc
improve to find cosmocc
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/tools/find_cosmocc.lua1
1 files changed, 1 insertions, 0 deletions
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("\\", "/")