summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-07 23:09:50 +0800
committerruki <[email protected]>2020-04-07 12:59:05 +0800
commit20b25b2a16d0282b0496f23d0f0e1ba8842b9205 (patch)
treec358ca5f0290e88fde95364d42281e40cf67e664 /xmake/plugins/project/make/makefile.lua
parent1e491924ccad666ad42e30d30e2031662bc1d3d0 (diff)
remove some ifelse
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index a3eea6c64..95df0ee86 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -191,7 +191,7 @@ function _make_object(makefile, target, sourcefile, objectfile, sourceflags)
makefile:print(" %s", sourcefile)
-- make body
- makefile:print("\t@echo %scompiling.$(mode) %s", ifelse(ccache, "ccache ", ""), sourcefile)
+ makefile:print("\t@echo %scompiling.$(mode) %s", ccache and "ccache " or "", sourcefile)
_mkdir(makefile, path.directory(objectfile))
makefile:writef("\t@%s > %s 2>&1\n", command, _logfile())