diff options
Diffstat (limited to 'xmake/modules/detect/tools/cl/has_flags.lua')
| -rw-r--r-- | xmake/modules/detect/tools/cl/has_flags.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/cl/has_flags.lua b/xmake/modules/detect/tools/cl/has_flags.lua index 8bce7a83e..378c16a5b 100644 --- a/xmake/modules/detect/tools/cl/has_flags.lua +++ b/xmake/modules/detect/tools/cl/has_flags.lua @@ -64,7 +64,7 @@ end function _check_try_running(flags, opt) -- 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("cl_has_flags:" .. snippet) .. _get_extension(opt) if not os.isfile(sourcefile) then io.writefile(sourcefile, snippet) |
