diff options
| author | ruki <[email protected]> | 2020-06-21 16:32:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-21 16:32:17 +0800 |
| commit | bf2a6694133db7b795b71e06e5a7162b21b5e26f (patch) | |
| tree | 84f53941faf34b7da4cc710322f40d4b4ea7ceea /tests/plugins/project/test.lua | |
| parent | b983c94fcda0e069e906f4dd46d1d19726780843 (diff) | |
improve to call msbuild
Diffstat (limited to 'tests/plugins/project/test.lua')
| -rw-r--r-- | tests/plugins/project/test.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua index a518a5aa9..5cc1e7e0e 100644 --- a/tests/plugins/project/test.lua +++ b/tests/plugins/project/test.lua @@ -1,7 +1,7 @@ -import("detect.sdks.find_vstudio") import("core.project.config") import("core.platform.platform") import("core.tool.toolchain") +import("lib.detect.find_tool") function test_vsxmake(t) @@ -35,8 +35,8 @@ function test_vsxmake(t) { function () local runenvs = toolchain.load("msvc"):runenvs() - os.addenv("PATH", runenvs.PATH) - os.execv("msbuild", {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = runenvs}) + local msbuild = find_tool("msbuild", {envs = runenvs}) + os.execv(msbuild.program, {"/P:XmakeDiagnosis=true", "/P:XmakeVerbose=true"}, {envs = runenvs}) end, catch { |
