summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tools/find_lib.lua')
-rw-r--r--xmake/modules/detect/tools/find_lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_lib.lua b/xmake/modules/detect/tools/find_lib.lua
index ba3f7e30d..13c0f7bb6 100644
--- a/xmake/modules/detect/tools/find_lib.lua
+++ b/xmake/modules/detect/tools/find_lib.lua
@@ -48,7 +48,7 @@ function main(opt)
local libraryfile = os.tmpfile() .. ".lib"
local objectfile = os.tmpfile() .. ".obj"
local sourcefile = os.tmpfile() .. ".c"
- io.writefile(sourcefile, "int test(void)\n{return 0;}")
+ io.writefile(sourcefile, "int test(void)\n{return 0;}\n")
-- check it
local cl = assert(find_tool("cl", {envs = opt.envs}))