summaryrefslogtreecommitdiff
path: root/tests/projects/objc++/console/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/objc++/console/xmake.lua')
-rw-r--r--tests/projects/objc++/console/xmake.lua24
1 files changed, 2 insertions, 22 deletions
diff --git a/tests/projects/objc++/console/xmake.lua b/tests/projects/objc++/console/xmake.lua
index a9229c7f3..8fba2d568 100644
--- a/tests/projects/objc++/console/xmake.lua
+++ b/tests/projects/objc++/console/xmake.lua
@@ -1,25 +1,5 @@
--- 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 rules
+add_rules("mode.debug", "mode.release")
-- add frameworks
add_frameworks("Foundation", "CoreFoundation")