summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/package/builder/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/builder/xmake.lua b/xmake/modules/package/builder/xmake.lua
index 1120d8f00..cc97cac91 100644
--- a/xmake/modules/package/builder/xmake.lua
+++ b/xmake/modules/package/builder/xmake.lua
@@ -40,7 +40,7 @@ function build(package, configs)
table.insert(argv, "--" .. name .. "=" .. value)
end
end
- table.insert(argv, "--mode=" .. (is_mode("debug") and "debug" or "release"))
+ table.insert(argv, "--mode=" .. (package:debug() and "debug" or "release"))
-- inherit require and option configs
for name, value in pairs(table.join(package:configs() or {}, configs or {})) do