diff options
| author | ruki <[email protected]> | 2016-07-12 16:39:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-12 16:39:30 +0800 |
| commit | 2a95f6e1394c42f166ac4184ab2cf4d77b4ffa7a (patch) | |
| tree | c65cc09f95249a2491352a10313a0d7f9f74060f /xmake/tools/gcc.lua | |
| parent | 18894a316af66cb5fc2556e7e2a119a93e37458d (diff) | |
fix and optimizate to compile issues for cl.exe
Diffstat (limited to 'xmake/tools/gcc.lua')
| -rwxr-xr-x | xmake/tools/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/tools/gcc.lua b/xmake/tools/gcc.lua index 556e7ae40..02eb1abe5 100755 --- a/xmake/tools/gcc.lua +++ b/xmake/tools/gcc.lua @@ -158,7 +158,7 @@ function compile(sourcefile, objectfile, incdepfile, flags) local tmpfile = os.tmpfile() -- generate it - os.run(compcmd(sourcefile, tmpfile, (flags or "") .. " -MM")) + os.run("%s -c -MM %s -o %s %s", _g.shellname, flags or "", tmpfile, sourcefile) -- translate it local results = {} |
