diff options
| author | ruki <[email protected]> | 2016-07-12 19:58:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-12 19:58:53 +0800 |
| commit | 2df6235f8b2b3c88c94676720c2e4076b2d0d9d9 (patch) | |
| tree | f56d4f48636202d45b8bbdfd613718ff4fe2b143 | |
| parent | d572c3be1e4d98e2e0e514e058038253ace8b5e3 (diff) | |
fix gcc check bug
| -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 201ba5517..9e1fad15b 100755 --- a/xmake/tools/gcc.lua +++ b/xmake/tools/gcc.lua @@ -184,7 +184,7 @@ function check(flags) -- make an stub source file local objectfile = os.tmpfile() .. ".o" - local sourcefile = os.tmpfile() .. ".c" .. ifelse(_g.kind == "cxx", "pp", "")) + local sourcefile = os.tmpfile() .. ".c" .. ifelse(_g.kind == "cxx", "pp", "") -- make stub code io.write(sourcefile, "int main(int argc, char** argv)\n{return 0;}") |
