summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_link.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tools/find_link.lua')
-rw-r--r--xmake/modules/detect/tools/find_link.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_link.lua b/xmake/modules/detect/tools/find_link.lua
index c79b2e52a..103242d9b 100644
--- a/xmake/modules/detect/tools/find_link.lua
+++ b/xmake/modules/detect/tools/find_link.lua
@@ -60,7 +60,7 @@ function main(opt)
local sourcefile = os.tmpfile() .. ".c"
-- compile sourcefile first
- io.writefile(sourcefile, "int main(int argc, char** argv)\n{return 0;}")
+ io.writefile(sourcefile, "int main(int argc, char** argv)\n{return 0;}\n")
os.runv(cl.program, {"-c", "-Fo" .. objectfile, sourcefile}, {envs = opt.envs})
-- do link