summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-05 23:55:44 +0800
committerruki <[email protected]>2024-02-05 23:55:44 +0800
commit832fc8ded7cbe98ab0244b6975d45215615221b0 (patch)
tree2bed692dbc0b7951db841a6aec11ca1622eb72bf /xmake/modules/detect
parent7da1f4565975341780560026fe0e28a51091ce70 (diff)
improve to find cosmocc
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/tools/find_cosmocc.lua1
-rw-r--r--xmake/modules/detect/tools/find_cosmocxx.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_cosmocc.lua b/xmake/modules/detect/tools/find_cosmocc.lua
index b89244994..be7c873f8 100644
--- a/xmake/modules/detect/tools/find_cosmocc.lua
+++ b/xmake/modules/detect/tools/find_cosmocc.lua
@@ -36,6 +36,7 @@ import("lib.detect.find_programver")
--
function main(opt)
opt = opt or {}
+ opt.shell = true
local program = find_program(opt.program or "cosmocc", opt)
local version = nil
if program and opt and opt.version then
diff --git a/xmake/modules/detect/tools/find_cosmocxx.lua b/xmake/modules/detect/tools/find_cosmocxx.lua
index c9a06fb0d..535cea6ab 100644
--- a/xmake/modules/detect/tools/find_cosmocxx.lua
+++ b/xmake/modules/detect/tools/find_cosmocxx.lua
@@ -36,6 +36,7 @@ import("lib.detect.find_programver")
--
function main(opt)
opt = opt or {}
+ opt.shell = true
local program = find_program(opt.program or "cosmoc++", opt)
local version = nil
if program and opt and opt.version then