summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-14 14:45:37 +0800
committerTitanSnow <[email protected]>2017-05-14 14:56:21 +0800
commit72292a6a32ed578eedbcd6e1f1739fd664663f98 (patch)
treeb3e435790c41d906d22d220e91c9faeb6d1e9943 /core/xmake.lua
parentd0ab950d6c28147d56fc287e937bafe651596b9e (diff)
add coverage for C ext
Diffstat (limited to 'core/xmake.lua')
-rw-r--r--core/xmake.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua
index b53b9a94c..fe911558e 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -48,6 +48,12 @@ if is_plat("macosx") then
add_ldflags("-all_load", "-pagezero_size 10000", "-image_base 100000000")
end
+-- for mode coverage
+if is_mode("coverage") then
+ add_cxflags("-coverage")
+ add_ldflags("-coverage")
+end
+
-- add package directories
add_packagedirs("pkg")