From 2df6235f8b2b3c88c94676720c2e4076b2d0d9d9 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 12 Jul 2016 19:58:53 +0800 Subject: fix gcc check bug --- xmake/tools/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;}") -- cgit v1.3.1