summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/qt/moc/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/qt/moc/xmake.lua b/xmake/rules/qt/moc/xmake.lua
index 623d3a6cb..a68f7ac5c 100644
--- a/xmake/rules/qt/moc/xmake.lua
+++ b/xmake/rules/qt/moc/xmake.lua
@@ -71,6 +71,7 @@ rule("qt.moc")
-- generate c++ source file for moc
local flags = {}
table.join2(flags, compiler.map_flags("cxx", "define", _get_values_from_target(target, "defines")))
+ table.join2(flags, compiler.map_flags("cxx", "runtime", _get_values_from_target(target, "runtimes")))
local pathmaps = {
{"includedirs", "includedir"},
{"sysincludedirs", "includedir"}, -- for now, moc process doesn't support MSVC external includes flags and will fail