diff options
| author | ruki <[email protected]> | 2021-02-19 22:50:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-19 22:50:53 +0800 |
| commit | c82bda398cadeeeccbdb8804b8bb3d7fe74172dc (patch) | |
| tree | f40d9ddbb75eb90e6f39d19c28da273d5fb41f36 /xmake/modules/detect | |
| parent | 41e6c1d82e6417f8cc0818ae37ee2677fd3692c1 (diff) | |
add gnu2mslib
Diffstat (limited to 'xmake/modules/detect')
| -rw-r--r-- | xmake/modules/detect/tools/find_cmake.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/detect/tools/find_ninja.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_cmake.lua b/xmake/modules/detect/tools/find_cmake.lua index e227c22a6..7c967f600 100644 --- a/xmake/modules/detect/tools/find_cmake.lua +++ b/xmake/modules/detect/tools/find_cmake.lua @@ -49,7 +49,7 @@ function main(opt) if not program and is_host("windows") then local msvc = toolchain.load("msvc") if msvc:check() then - opt.envs = toolchain.load("msvc"):runenvs() -- we attempt to find it from vstudio environments + opt.envs = msvc:runenvs() -- we attempt to find it from vstudio environments opt.force = true program = find_program(opt.program or "cmake", opt) end diff --git a/xmake/modules/detect/tools/find_ninja.lua b/xmake/modules/detect/tools/find_ninja.lua index f9f8a08be..36b8b0db8 100644 --- a/xmake/modules/detect/tools/find_ninja.lua +++ b/xmake/modules/detect/tools/find_ninja.lua @@ -44,7 +44,7 @@ function main(opt) if not program and is_host("windows") then local msvc = toolchain.load("msvc") if msvc:check() then - opt.envs = toolchain.load("msvc"):runenvs() -- we attempt to find it from vstudio environments + opt.envs = msvc:runenvs() -- we attempt to find it from vstudio environments opt.force = true program = find_program(opt.program or "ninja", opt) end |
