diff options
| author | ruki <[email protected]> | 2015-06-09 16:00:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-09 16:00:21 +0800 |
| commit | e18c9d7a5718c80852fab0eb89161b4da28b7a94 (patch) | |
| tree | 97f3b07c525cb8f1b91a5ca5a13b729d6b0fc7e1 /tests/console/xmake.lua | |
| parent | bf0040998da482cb640a3637fd91e36a0495b27b (diff) | |
fix defines bug
Diffstat (limited to 'tests/console/xmake.lua')
| -rw-r--r-- | tests/console/xmake.lua | 5 |
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") |
