summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-30 23:55:37 +0800
committerruki <[email protected]>2019-08-30 17:33:43 +0800
commit74108f9a690cab1a9a8749e5e1c6880d59c83c95 (patch)
treea4a4c12bf5ddd64e1715ba6a59d5286aad48a729 /xmake/core/project/target.lua
parent2202a09519c6e0e719735c7c5b1f3be225056080 (diff)
fix build progress
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 2a15482f9..c20d1f190 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -1337,8 +1337,8 @@ function _instance:sourcebatches()
local sourcebatch = sourcebatches[rulename] or {sourcefiles = {}}
sourcebatches[rulename] = sourcebatch
- -- add file rule to this batch
- sourcebatch.rule = filerule
+ -- save the rule name
+ sourcebatch.rulename = rulename
-- add source file to this batch
table.insert(sourcebatch.sourcefiles, sourcefile)