From 13795fa26f2699f464a2599ca61a41e2d413b7c0 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 8 Nov 2023 23:32:39 +0800 Subject: set runtimes for moc --- xmake/rules/qt/moc/xmake.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.3.1