summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
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/base/makefile.lua
parentd81ff2a9fbfefbfd58697f918a879a59e14321c1 (diff)
open new file and create directory
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua
index 0453df95d..6ad63490b 100644
--- a/xmake/scripts/base/makefile.lua
+++ b/xmake/scripts/base/makefile.lua
@@ -213,11 +213,6 @@ function makefile.make()
local buildir = config.get("buildir")
assert(buildir)
- -- make the build directory
- if not os.isdir(buildir) then
- assert(os.mkdir(buildir))
- end
-
-- init the log file
local logfile = rule.logfile()
if logfile and os.isfile(logfile) then
@@ -230,7 +225,7 @@ function makefile.make()
-- open the makefile
local path = buildir .. "/makefile"
- local file = io.open(path, "w")
+ local file = io.openmk(path)
if not file then
-- error
utils.error("open %s failed!", path)