summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-14 09:00:26 +0800
committerruki <[email protected]>2017-02-14 09:00:26 +0800
commit5e23aa6f9344b21dee98ad3fad9182808d690485 (patch)
tree2592b6b087dce76b6447d4de2a5a1446b6c98169 /xmake/core/tool/compiler.lua
parentf7eaf51c4cad7d94989e130de2172df2cbc74193 (diff)
modify interface for compiling multiple source files
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index cf175e622..18af4adb4 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -104,18 +104,18 @@ function compiler.load(sourcekind)
return instance
end
--- compile the source file
-function compiler:compile(sourcefile, objectfile, incdepfile, target)
+-- compile the source files
+function compiler:compile(sourcefiles, objectfile, incdepfiles, target)
-- compile it
- return sandbox.load(self:_tool().compile, sourcefile, objectfile, incdepfile, (self:compflags(target)))
+ return sandbox.load(self:_tool().compile, sourcefiles, objectfile, incdepfiles, (self:compflags(target)))
end
-- get the compile command
-function compiler:compcmd(sourcefile, objectfile, target)
+function compiler:compcmd(sourcefiles, objectfile, target)
-- get it
- return self:_tool().compcmd(sourcefile, objectfile, (self:compflags(target)))
+ return self:_tool().compcmd(sourcefiles, objectfile, (self:compflags(target)))
end
-- get the compling flags