From 509f75e87676bf3d95bc5dc8ccd3b731fdc055e4 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Wed, 17 Jul 2019 16:24:51 +0800 Subject: fix tests --- tests/projects/objc++/console/xmake.lua | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'tests/projects/objc++/console/xmake.lua') 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") -- cgit v1.3.1