summaryrefslogtreecommitdiff
path: root/xmake/rules/dlang/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-29 13:31:18 +0800
committerruki <[email protected]>2023-01-29 13:31:18 +0800
commitdd1e63c09b84c0fd0b886503da3cc468ef7ea0a5 (patch)
treefcffd63076a8292e0572651fe44248d08657e5b7 /xmake/rules/dlang/xmake.lua
parentc2dffcc808eea9bd15adc5842b6a2636a5138409 (diff)
add lto for ldc2
Diffstat (limited to 'xmake/rules/dlang/xmake.lua')
-rw-r--r--xmake/rules/dlang/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/dlang/xmake.lua b/xmake/rules/dlang/xmake.lua
index cebbaef3e..7ffb8c42f 100644
--- a/xmake/rules/dlang/xmake.lua
+++ b/xmake/rules/dlang/xmake.lua
@@ -20,6 +20,7 @@
rule("dlang.build")
set_sourcekinds("dc")
+ add_deps("dlang.build.optimization")
on_build_files("private.action.build.object", {batch = true})
on_load(function (target)
local toolchains = target:get("toolchains") or get_config("toolchain")