summaryrefslogtreecommitdiff
path: root/xmake/core/platform/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/platform/compiler.lua')
-rw-r--r--xmake/core/platform/compiler.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/platform/compiler.lua b/xmake/core/platform/compiler.lua
index 04932dda2..96171003b 100644
--- a/xmake/core/platform/compiler.lua
+++ b/xmake/core/platform/compiler.lua
@@ -465,7 +465,7 @@ function compiler.check_include(opt, include, srcpath, objpath)
assert(opt and srcpath and objpath)
-- open the checking source file
- local srcfile = io.openmk(srcpath)
+ local srcfile = io.open(srcpath, "w")
if not srcfile then return end
-- make include
@@ -497,7 +497,7 @@ function compiler.check_function(opt, interface, srcpath, objpath)
assert(opt and interface)
-- open the checking source file
- local srcfile = io.openmk(srcpath)
+ local srcfile = io.open(srcpath, "w")
if not srcfile then return end
-- get the compiler
@@ -541,7 +541,7 @@ function compiler.check_typedef(opt, typedef, srcpath, objpath)
assert(opt and typedef)
-- open the checking source file
- local srcfile = io.openmk(srcpath)
+ local srcfile = io.open(srcpath, "w")
if not srcfile then return end
-- get the compiler