summaryrefslogtreecommitdiff
path: root/xmake/core/platform/compiler.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-16 10:41:57 +0800
committerruki <[email protected]>2016-03-16 10:41:57 +0800
commit566d33d6be83884239cce7df0655e60ec00bd836 (patch)
tree79409e657888768fe28fa2ad3af0a52cb7d355ee /xmake/core/platform/compiler.lua
parent5862427be483f6747d88d3a79121e2a4f2a27670 (diff)
load project
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