summaryrefslogtreecommitdiff
path: root/tests/projects/console_c/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/console_c/xmake.lua')
-rw-r--r--tests/projects/console_c/xmake.lua23
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")