diff options
Diffstat (limited to 'xmake/scripts/base/project.lua')
| -rw-r--r-- | xmake/scripts/base/project.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua index 39cfa7c42..fc168851e 100644 --- a/xmake/scripts/base/project.lua +++ b/xmake/scripts/base/project.lua @@ -259,7 +259,8 @@ function project._makeconf_for_target(target_name, target) local prefix = target_name:upper() .. "_CONFIG" -- open the file - local file = project._CONFILES[configfile] or io.open(configfile, "w") + local file = project._CONFILES[configfile] or io.openmk(configfile) + assert(file) -- make the head if project._CONFILES[configfile] then file:write("\n") end |
