summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-08 23:32:39 +0800
committerruki <[email protected]>2023-11-08 23:32:39 +0800
commit13795fa26f2699f464a2599ca61a41e2d413b7c0 (patch)
tree1450a93f910971875ddcbeab5fac9f925e1c4db9
parent8eefa03ee2cadf0d89126e18173c1e179bebc3c5 (diff)
set runtimes for moc
-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