diff options
| author | ruki <[email protected]> | 2024-07-01 23:02:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-01 23:02:23 +0800 |
| commit | 030d7105837e998ded7e8969beb6d9d13d18b015 (patch) | |
| tree | b951fa1b7241e612f895c3f784bc331024c5ec2f /xmake/modules | |
| parent | 6bed5edd427bf382cf966f8cbff780f7fdfdad2d (diff) | |
improve to find cosmocc
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/detect/tools/find_cosmocc.lua | 1 |
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("\\", "/") |
