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/base/makefile.lua | |
| parent | d81ff2a9fbfefbfd58697f918a879a59e14321c1 (diff) | |
open new file and create directory
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
| -rw-r--r-- | xmake/scripts/base/makefile.lua | 7 |
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) |
