summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-17 00:33:09 +0800
committerruki <[email protected]>2020-12-17 00:33:09 +0800
commit55ceaffc18102b40bee2916335303e6861e5cfcb (patch)
tree1efe82b5501f26205f9d20962224bf453c3187f1
parent83e09c0fa0ea1cc9b40860d9f58676b0a4f12a38 (diff)
improve to load platform for vs plugin
-rw-r--r--tests/plugins/project/test.lua2
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x.lua2
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua
index 30fbe323b..1aac20088 100644
--- a/tests/plugins/project/test.lua
+++ b/tests/plugins/project/test.lua
@@ -21,7 +21,7 @@ function test_vsxmake(t)
-- set config
local arch = os.getenv("platform") or "x86"
config.set("arch", arch, {readonly = true, force = true})
- platform.load(config.plat()):check()
+ platform.load(config.plat(), arch):check()
-- create sln & vcxproj
local vs = config.get("vs")
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
index 7bc9f9d45..10784c5ea 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -238,7 +238,7 @@ function make(outputdir, vsinfo)
project.clear()
-- check platform
- platform.load(config.plat()):check()
+ platform.load(config.plat(), arch):check()
-- check project options
project.check()
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 0ba11514c..7a82036bc 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -297,7 +297,7 @@ function main(outputdir, vsinfo)
project.clear()
-- check platform
- platform.load(config.plat()):check()
+ platform.load(config.plat(), arch):check()
-- check project options
project.check()