diff options
| author | ruki <[email protected]> | 2016-12-19 09:14:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-01-06 17:20:08 +0800 |
| commit | f7a4d5e18d50ccaa23adfcb06358f9368770ed6a (patch) | |
| tree | 31cb4924c35ad3ed7b81dd8fda337fb6648dcc30 /tests/console_go/xmake.lua | |
| parent | 3ec8380e312ebfd82a359632ad660fb842b9211d (diff) | |
add golang
Diffstat (limited to 'tests/console_go/xmake.lua')
| -rwxr-xr-x | tests/console_go/xmake.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/console_go/xmake.lua b/tests/console_go/xmake.lua new file mode 100755 index 000000000..d69c3d457 --- /dev/null +++ b/tests/console_go/xmake.lua @@ -0,0 +1,32 @@ +-- the debug mode +if is_mode("debug") then + + -- enable the debug symbols + set_symbols("debug") + + -- disable optimization + set_optimize("none") +end + +-- the release mode +if is_mode("release") then + + -- set the symbols visibility: hidden + set_symbols("hidden") + + -- enable fastest optimization + set_optimize("fastest") + + -- strip all symbols + set_strip("all") +end + +-- add target +target("console_go") + + -- set kind + set_kind("binary") + + -- add files + add_files("src/*.go") + |
