diff options
Diffstat (limited to 'xmake/modules/detect/tools/gcc/has_flags.lua')
| -rw-r--r-- | xmake/modules/detect/tools/gcc/has_flags.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/gcc/has_flags.lua b/xmake/modules/detect/tools/gcc/has_flags.lua index 99ceb0643..181cef04e 100644 --- a/xmake/modules/detect/tools/gcc/has_flags.lua +++ b/xmake/modules/detect/tools/gcc/has_flags.lua @@ -89,7 +89,7 @@ end function _check_try_running(flags, opt, islinker) -- make an stub source file - local snippet = opt.snippet or "int main(int argc, char** argv)\n{return 0;}" + local snippet = opt.snippet or "int main(int argc, char** argv)\n{return 0;}\n" local sourcefile = os.tmpfile("gcc_has_flags:" .. snippet) .. _get_extension(opt) if not os.isfile(sourcefile) then io.writefile(sourcefile, snippet) |
