diff options
| author | ruki <[email protected]> | 2015-06-11 15:08:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-11 15:08:30 +0800 |
| commit | ef4fe60273da742248fe9111e9141df51185c204 (patch) | |
| tree | e114a7fabbf363772e4c3247f68b9631c64418aa /xmake/scripts/platform | |
| parent | d81ff2a9fbfefbfd58697f918a879a59e14321c1 (diff) | |
open new file and create directory
Diffstat (limited to 'xmake/scripts/platform')
| -rw-r--r-- | xmake/scripts/platform/windows/prober.lua | 3 |
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 |
