diff options
| author | ruki <[email protected]> | 2016-04-28 11:14:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-04-28 11:14:04 +0800 |
| commit | 3571f65949d94560efbb2ae26703e0f5ac8a5f13 (patch) | |
| tree | 270eccf3ff12e44673fde8bcb0bc5c5a0dc93682 /xmake/tools/link.lua | |
| parent | 52eb26701de17e800ae69cc495ac665a39d5d1dd (diff) | |
add link and nmake tools for windows
Diffstat (limited to 'xmake/tools/link.lua')
| -rwxr-xr-x | xmake/tools/link.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua index f31cdaef5..7ebbbfc91 100755 --- a/xmake/tools/link.lua +++ b/xmake/tools/link.lua @@ -128,10 +128,9 @@ function check(flags) local srcfile = path.join(os.tmpdir(), "xmake.cl.c") io.write(srcfile, "int main(int argc, char** argv)\n{return 0;}") - -- TODO import compiler -- check it os.run("cl -c -Fo%s %s", objfile, srcfile) - os.run("%s %s -out:%s %s", _g.shellname, flags, exefile, objfile) + os.run("%s %s -out:%s %s", _g.shellname, ifelse(flags, flags, ""), exefile, objfile) -- remove files os.rm(objfile) |
