From f8358f12d79b373fceee3fd8213ef00045028f39 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Fri, 10 Jun 2022 00:03:25 +0200 Subject: Fix missing moc json generation --- xmake/rules/qt/moc/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/qt/moc/xmake.lua b/xmake/rules/qt/moc/xmake.lua index 7cb62b9bb..2092ebe71 100644 --- a/xmake/rules/qt/moc/xmake.lua +++ b/xmake/rules/qt/moc/xmake.lua @@ -80,7 +80,7 @@ rule("qt.moc") end local user_flags = target:get("qt.moc.flags") or {} batchcmds:mkdir(path.directory(sourcefile_moc)) - batchcmds:vrunv(moc, table.join(flags, path(sourcefile), "-o", path(sourcefile_moc))) + batchcmds:vrunv(moc, table.join(user_flags, flags, path(sourcefile), "-o", path(sourcefile_moc))) -- we need compile this moc_xxx.cpp file if exists Q_PRIVATE_SLOT, @see https://github.com/xmake-io/xmake/issues/750 local mocdata = io.readfile(sourcefile) -- cgit v1.3.1