summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRC1844 <[email protected]>2025-11-14 10:46:07 +0800
committerGitHub <[email protected]>2025-11-14 10:46:07 +0800
commita65feee549978a38a28fa4f714fcede1d9422aee (patch)
tree0c31afc89ca33540238b4d062ae36d0529963dda
parent27cf2413c2667131a90c0d864b6abb799b934d1b (diff)
Update Qt ts rule
Avoid unnecessary processing without source files
-rw-r--r--xmake/rules/qt/ts/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/qt/ts/xmake.lua b/xmake/rules/qt/ts/xmake.lua
index 9319fa2d4..ae141707e 100644
--- a/xmake/rules/qt/ts/xmake.lua
+++ b/xmake/rules/qt/ts/xmake.lua
@@ -21,7 +21,7 @@ rule("qt.ts")
end
end
end
- if sourcefile_ts then
+ if sourcefile_ts and #source_files > 0 then
-- save source files
source_files = table.unique(source_files)
local json_data = {