summaryrefslogtreecommitdiff
path: root/tests/console/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-09 16:00:21 +0800
committerruki <[email protected]>2015-06-09 16:00:21 +0800
commite18c9d7a5718c80852fab0eb89161b4da28b7a94 (patch)
tree97f3b07c525cb8f1b91a5ca5a13b729d6b0fc7e1 /tests/console/xmake.lua
parentbf0040998da482cb640a3637fd91e36a0495b27b (diff)
fix defines bug
Diffstat (limited to 'tests/console/xmake.lua')
-rw-r--r--tests/console/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/console/xmake.lua b/tests/console/xmake.lua
index 40a940830..6d69379da 100644
--- a/tests/console/xmake.lua
+++ b/tests/console/xmake.lua
@@ -1,4 +1,5 @@
version("1.0.1")
+configfile("$(buildir)/demo.h")
if modes("debug") then
symbols("debug")
@@ -22,6 +23,10 @@ if modes("profile") then
optimize("fastest")
end
+if archs("x86", "x64") then
+ defines("ARCH=\"$(arch)\"", "PLAT=$(plat)", "MODE=$(mode)", "HOST=$(host)")
+end
+
target("hello1")
kind("static")
files("src/hello1/*.c")