summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-20 20:34:37 +0800
committerruki <[email protected]>2015-06-20 20:34:37 +0800
commita3f92451ca522092bd12e0c64a73b1154993253d (patch)
treea85127fb03d430cd25ee65db410aee944321ce8e /xmake/scripts/platform/platform.lua
parent8452df53aca437c49963afdf9738022c198365a5 (diff)
install c++ console template
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
-rw-r--r--xmake/scripts/platform/platform.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua
index bad7c8969..c2057e246 100644
--- a/xmake/scripts/platform/platform.lua
+++ b/xmake/scripts/platform/platform.lua
@@ -157,8 +157,12 @@ end
-- make the current platform configure
function platform.make()
+ -- get the platform
+ local plat = config.get("plat")
+ assert(plat)
+
-- make and get the current platform configure
- return platform._configs(config.get("plat"))
+ return platform._configs(plat)
end
-- get the platform os