diff options
Diffstat (limited to 'xmake/modules/detect/tools')
| -rw-r--r-- | xmake/modules/detect/tools/find_emar.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_emcc.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_emxx.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/detect/tools/find_emar.lua b/xmake/modules/detect/tools/find_emar.lua index ef4ce81b5..cd1e47bda 100644 --- a/xmake/modules/detect/tools/find_emar.lua +++ b/xmake/modules/detect/tools/find_emar.lua @@ -63,5 +63,5 @@ function main(opt) opt.check = opt.check or _check -- find program - return find_program(opt.program or "emar", opt) + return find_program(opt.program or (is_host("windows") and "emar.bat" or "emar"), opt) end diff --git a/xmake/modules/detect/tools/find_emcc.lua b/xmake/modules/detect/tools/find_emcc.lua index 2eda7543c..90eafed91 100644 --- a/xmake/modules/detect/tools/find_emcc.lua +++ b/xmake/modules/detect/tools/find_emcc.lua @@ -41,7 +41,7 @@ function main(opt) opt = opt or {} -- find program - local program = find_program(opt.program or "emcc", opt) + local program = find_program(opt.program or (is_host("windows") and "emcc.bat" or "emcc"), opt) -- find program version local version = nil diff --git a/xmake/modules/detect/tools/find_emxx.lua b/xmake/modules/detect/tools/find_emxx.lua index 6adaea5c9..1c9fe5840 100644 --- a/xmake/modules/detect/tools/find_emxx.lua +++ b/xmake/modules/detect/tools/find_emxx.lua @@ -41,7 +41,7 @@ function main(opt) opt = opt or {} -- find program - local program = find_program(opt.program or "em++", opt) + local program = find_program(opt.program or (is_host("windows") and "em++.bat" or "em++"), opt) -- find program version local version = nil |
