summaryrefslogtreecommitdiff
path: root/tests/projects/c++/shared_library/xmake.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-17 16:24:51 +0800
committerOpportunityLiu <[email protected]>2019-07-17 16:24:51 +0800
commit509f75e87676bf3d95bc5dc8ccd3b731fdc055e4 (patch)
tree8137bb26ff0f2584ffd538594f1b087607a54af4 /tests/projects/c++/shared_library/xmake.lua
parent42fd31e85dfbb8f1e916394bb2497fd0ee78f0d4 (diff)
fix tests
Diffstat (limited to 'tests/projects/c++/shared_library/xmake.lua')
-rw-r--r--tests/projects/c++/shared_library/xmake.lua24
1 files changed, 2 insertions, 22 deletions
diff --git a/tests/projects/c++/shared_library/xmake.lua b/tests/projects/c++/shared_library/xmake.lua
index 6c2d4deea..cd423db3b 100644
--- a/tests/projects/c++/shared_library/xmake.lua
+++ b/tests/projects/c++/shared_library/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 target
target("shared_library_c++")