summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-11 15:08:30 +0800
committerruki <[email protected]>2015-06-11 15:08:30 +0800
commitef4fe60273da742248fe9111e9141df51185c204 (patch)
treee114a7fabbf363772e4c3247f68b9631c64418aa /xmake/scripts/platform
parentd81ff2a9fbfefbfd58697f918a879a59e14321c1 (diff)
open new file and create directory
Diffstat (limited to 'xmake/scripts/platform')
-rw-r--r--xmake/scripts/platform/windows/prober.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/scripts/platform/windows/prober.lua b/xmake/scripts/platform/windows/prober.lua
index 099212179..c8e466b5a 100644
--- a/xmake/scripts/platform/windows/prober.lua
+++ b/xmake/scripts/platform/windows/prober.lua
@@ -21,6 +21,7 @@
--
-- load modules
+local io = require("base/io")
local os = require("base/os")
local path = require("base/path")
local utils = require("base/utils")
@@ -151,7 +152,7 @@ function prober._probe_vs_path(configs)
-- make the call(vsvars32.bat) file
local callpath = tmpdir .. "\\call_vsvars32.bat"
- local callfile = io.open(callpath, "w")
+ local callfile = io.openmk(callpath)
assert(callfile)
-- make call scripts