diff options
| author | ruki <[email protected]> | 2018-04-13 22:39:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-04-13 09:59:00 +0800 |
| commit | d8a540a7e74e224d0a19dec874628a69766bcd98 (patch) | |
| tree | 9e35ccf811eca836899f0a423de1f22e73f3eca7 /tests/projects/console_c/xmake.lua | |
| parent | f2c934d1370eed2e674a94c4f678a3cf3da812f0 (diff) | |
add debug and release rules
Diffstat (limited to 'tests/projects/console_c/xmake.lua')
| -rw-r--r-- | tests/projects/console_c/xmake.lua | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/tests/projects/console_c/xmake.lua b/tests/projects/console_c/xmake.lua index 5bb1a2510..05d54fa63 100644 --- a/tests/projects/console_c/xmake.lua +++ b/tests/projects/console_c/xmake.lua @@ -1,25 +1,6 @@ --- 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 debug/release mode +add_rules("mode:debug", "mode:release") -- add target target("console_c") |
