summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/dmd.lua2
-rw-r--r--xmake/modules/core/tools/ldc2.lua11
2 files changed, 1 insertions, 12 deletions
diff --git a/xmake/modules/core/tools/dmd.lua b/xmake/modules/core/tools/dmd.lua
index 6dfa85695..cb364c92c 100644
--- a/xmake/modules/core/tools/dmd.lua
+++ b/xmake/modules/core/tools/dmd.lua
@@ -62,7 +62,7 @@ function nf_strip(self, level)
if not self:is_plat("windows") then
local maps = {
debug = "-L-S",
- all = {"-L-s", "-L-dead_strip"}
+ all = "-L-s"
}
if self:is_plat("macosx", "iphoneos") then
maps.all = {"-L-x", "-L-dead_strip"}
diff --git a/xmake/modules/core/tools/ldc2.lua b/xmake/modules/core/tools/ldc2.lua
index 2562ef07e..86c821252 100644
--- a/xmake/modules/core/tools/ldc2.lua
+++ b/xmake/modules/core/tools/ldc2.lua
@@ -46,17 +46,6 @@ function nf_optimize(self, level)
return maps[level]
end
--- make the strip flag
-function nf_strip(self, level)
- if not self:is_plat("windows") then
- local maps = {
- debug = "-L-S",
- all = "-L-s"
- }
- return maps[level]
- end
-end
-
-- make the symbol flag
function nf_symbol(self, level)
local maps = {