diff options
| author | OpportunityLiu <[email protected]> | 2019-07-17 16:24:51 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-17 16:24:51 +0800 |
| commit | 509f75e87676bf3d95bc5dc8ccd3b731fdc055e4 (patch) | |
| tree | 8137bb26ff0f2584ffd538594f1b087607a54af4 /tests/projects/c++/shared_library/xmake.lua | |
| parent | 42fd31e85dfbb8f1e916394bb2497fd0ee78f0d4 (diff) | |
fix tests
Diffstat (limited to 'tests/projects/c++/shared_library/xmake.lua')
| -rw-r--r-- | tests/projects/c++/shared_library/xmake.lua | 24 |
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++") |
