diff options
| author | therloux <[email protected]> | 2025-01-12 20:13:27 +0000 |
|---|---|---|
| committer | therloux <[email protected]> | 2025-01-12 20:13:27 +0000 |
| commit | 9be0e3d31e0dd77a6e0f91268c62ecb522e6f92e (patch) | |
| tree | 452d8eff2e9f069edf88832de91dca566c69169f /xmake/modules/detect/tools/gcc/has_flags.lua | |
| parent | 229373a8e84b72e0a5a6c768c76ad29c040355f0 (diff) | |
Add newline at the end of file snippets
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) |
