diff options
| author | ruki <[email protected]> | 2017-06-21 08:41:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-21 08:41:22 +0800 |
| commit | 45a54659f7449ead7ed073f9c0cbbe1da9fcdc06 (patch) | |
| tree | a09be69c75dce6435d7584ad467aeb51e3c8d37a /xmake/tools/swiftc.lua | |
| parent | ace13f7594d5dbddd771cfe0a4004bbcb506b11c (diff) | |
rename shellname to program
Diffstat (limited to 'xmake/tools/swiftc.lua')
| -rw-r--r-- | xmake/tools/swiftc.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xmake/tools/swiftc.lua b/xmake/tools/swiftc.lua index ebae6b28f..b740a49a9 100644 --- a/xmake/tools/swiftc.lua +++ b/xmake/tools/swiftc.lua @@ -23,15 +23,14 @@ -- -- imports -import("core.tool.tool") import("core.project.config") import("detect.tools.find_ccache") -- init it -function init(shellname, kind) +function init(program, kind) -- save the shell name - _g.shellname = shellname or "swiftc" + _g.program = program or "swiftc" -- init kind _g.kind = kind @@ -205,7 +204,7 @@ end function linkcmd(objectfiles, targetkind, targetfile, flags) -- make it - return format("%s -o %s %s %s", _g.shellname, targetfile, objectfiles, flags) + return format("%s -o %s %s %s", _g.program, targetfile, objectfiles, flags) end -- link the target file @@ -228,7 +227,7 @@ function _compcmd1(sourcefile, objectfile, flags) end -- make it - local command = format("%s -c %s -o %s %s", _g.shellname, flags, objectfile, sourcefile) + local command = format("%s -c %s -o %s %s", _g.program, flags, objectfile, sourcefile) if ccache then command = ccache:append(command, " ") end @@ -271,5 +270,5 @@ end function check(flags) -- check it - os.run("%s -h", _g.shellname) + os.run("%s -h", _g.program) end |
