diff options
| author | ruki <[email protected]> | 2023-03-02 23:13:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-02 23:13:59 +0800 |
| commit | d451f16665a8230ec8c730cb67911f1e8a767fdb (patch) | |
| tree | 14431afb91e2602a41b1647e2f6b5032ea5c228a /xmake/modules/detect/tools/find_ninja.lua | |
| parent | 5afbc8e9f237b3c782b75183c11ca5b2ed41e661 (diff) | |
improve find_cmake
Diffstat (limited to 'xmake/modules/detect/tools/find_ninja.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_ninja.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_ninja.lua b/xmake/modules/detect/tools/find_ninja.lua index 36b8b0db8..297784d69 100644 --- a/xmake/modules/detect/tools/find_ninja.lua +++ b/xmake/modules/detect/tools/find_ninja.lua @@ -42,7 +42,7 @@ function main(opt) opt = opt or {} local program = find_program(opt.program or "ninja", opt) if not program and is_host("windows") then - local msvc = toolchain.load("msvc") + local msvc = toolchain.load("msvc", {plat = os.host(), arch = os.arch()}) if msvc:check() then opt.envs = msvc:runenvs() -- we attempt to find it from vstudio environments opt.force = true |
