From 3571f65949d94560efbb2ae26703e0f5ac8a5f13 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 28 Apr 2016 11:14:04 +0800 Subject: add link and nmake tools for windows --- xmake/tools/link.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmake/tools/link.lua') 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) -- cgit v1.3.1