File tree 2 files changed +8
-1
lines changed
tests/projects/c/cosmocc/console
xmake/core/sandbox/modules/import/lib/detect
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ add_rules("mode.debug", "mode.release")
2
2
3
3
add_requires (" cosmocc" )
4
4
5
+ -- TODO, we should add envs to toolchains/cosmocc
6
+ if is_subhost (" windoows" ) then
7
+ add_requires (" msys2" )
8
+ add_packages (" msys2" )
9
+ end
10
+
5
11
target (" test" )
6
12
set_kind (" binary" )
7
13
add_files (" src/*.c" )
Original file line number Diff line number Diff line change 74
74
75
75
-- check program
76
76
function sandbox_lib_detect_find_program ._check (program , opt )
77
+ opt = opt or {}
77
78
local findname = program
78
79
if os .subhost () == " windows" then
79
- if not program :endswith (" .exe" ) and not program :endswith (" .cmd" ) and not program :endswith (" .bat" ) then
80
+ if not opt . shell and not program :endswith (" .exe" ) and not program :endswith (" .cmd" ) and not program :endswith (" .bat" ) then
80
81
findname = program .. " .exe"
81
82
end
82
83
elseif os .subhost () == " msys" and os .isfile (program ) and os .filesize (program ) < 256 then
You can’t perform that action at this time.
0 commit comments