summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_emar.lua
diff options
context:
space:
mode:
authortherloux <[email protected]>2025-01-12 20:13:27 +0000
committertherloux <[email protected]>2025-01-12 20:13:27 +0000
commit9be0e3d31e0dd77a6e0f91268c62ecb522e6f92e (patch)
tree452d8eff2e9f069edf88832de91dca566c69169f /xmake/modules/detect/tools/find_emar.lua
parent229373a8e84b72e0a5a6c768c76ad29c040355f0 (diff)
Add newline at the end of file snippets
Diffstat (limited to 'xmake/modules/detect/tools/find_emar.lua')
-rw-r--r--xmake/modules/detect/tools/find_emar.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_emar.lua b/xmake/modules/detect/tools/find_emar.lua
index 0a6ba4f7c..407113e36 100644
--- a/xmake/modules/detect/tools/find_emar.lua
+++ b/xmake/modules/detect/tools/find_emar.lua
@@ -60,7 +60,7 @@ function main(opt)
local libraryfile = os.tmpfile() .. ".a"
local objectfile = os.tmpfile() .. ".o"
local sourcefile = os.tmpfile() .. ".c"
- io.writefile(sourcefile, "int test(void)\n{return 0;}")
+ io.writefile(sourcefile, "int test(void)\n{return 0;}\n")
-- compile it
os.runv(emcc.program, {"-c", "-o" .. objectfile, sourcefile}, {envs = opt.envs})