diff options
| author | ruki <[email protected]> | 2015-06-18 14:49:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-18 14:49:25 +0800 |
| commit | 1cb067b57383aa65ad5500b350aca22d865e7f3c (patch) | |
| tree | 7708657d1daf661afab19668eb64d9bff96c14d4 /xmake/scripts/base/makefile.lua | |
| parent | a2037440e4b4211fc67e602d62ab2d598bfe9fca (diff) | |
modify the create project menu
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
| -rw-r--r-- | xmake/scripts/base/makefile.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua index 26b45d856..7b1ca2e7d 100644 --- a/xmake/scripts/base/makefile.lua +++ b/xmake/scripts/base/makefile.lua @@ -74,7 +74,7 @@ function makefile._make_object(file, target, srcfile, objfile) -- make body file:write(string.format("\t@echo %scompiling%s %s\n", utils.ifelse(ccache, "ccache ", ""), mode, srcfile)) - file:write(string.format("\t@xmake l $(VERBOSE) verbose \"%s\"\n", cmd:gsub("[=\"]", function (w) return string.format("%%%x", w:byte()) end))) + file:write(string.format("\t@xmake l $(VERBOSE) verbose \"%s\"\n", cmd:gsub("[%s=\"]", function (w) return string.format("%%%x", w:byte()) end))) file:write(string.format("\t@xmake l mkdir %s\n", path.directory(objfile))) file:write(string.format("\t@%s\n", cmd)) @@ -180,7 +180,7 @@ function makefile._make_target(file, name, target) local cmd = linker.make(l, target, objfiles, targetfile, makefile._LOGFILE) -- the verbose - local verbose = cmd:gsub("[=\"<]", function (w) return string.format("%%%x", w:byte()) end) + local verbose = cmd:gsub("[%s=\"<]", function (w) return string.format("%%%x", w:byte()) end) -- too long? if verbose and #verbose > 256 then verbose = verbose:sub(1, 256) .. " ..." |
