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/ml.lua | |
| parent | ace13f7594d5dbddd771cfe0a4004bbcb506b11c (diff) | |
rename shellname to program
Diffstat (limited to 'xmake/tools/ml.lua')
| -rw-r--r-- | xmake/tools/ml.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/tools/ml.lua b/xmake/tools/ml.lua index d8ddaee29..709f81d58 100644 --- a/xmake/tools/ml.lua +++ b/xmake/tools/ml.lua @@ -23,16 +23,16 @@ -- -- init it -function init(shellname, kind) +function init(program, kind) -- save name - _g.shellname = shellname or "ml.exe" + _g.program = program or "ml.exe" -- save kind _g.kind = kind -- init asflags - if _g.shellname:find("64") then + if _g.program:find("64") then _g.asflags = { "-nologo"} else _g.asflags = { "-nologo", "-Gd"} @@ -114,7 +114,7 @@ end function _compcmd1(sourcefile, objectfile, flags) -- make it - return format("%s -c %s -Fo%s %s", _g.shellname, flags, objectfile, sourcefile) + return format("%s -c %s -Fo%s %s", _g.program, flags, objectfile, sourcefile) end -- complie the source file @@ -155,7 +155,7 @@ function check(flags) io.writefile(sourcefile, "end") -- check it - os.run("%s -c %s -Fo%s %s", _g.shellname, ifelse(flags, flags, ""), objectfile, sourcefile) + os.run("%s -c %s -Fo%s %s", _g.program, ifelse(flags, flags, ""), objectfile, sourcefile) -- remove files os.rm(objectfile) |
