summaryrefslogtreecommitdiff
path: root/xmake/core/base/utils.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-19 12:19:26 +0800
committerOpportunityLiu <[email protected]>2019-06-19 12:19:26 +0800
commitec47d59df254531303c0885b1a4d8c5d35deb42c (patch)
treed60491e53f5c2d39c1ef3ca1cbb4bb0397f6afc4 /xmake/core/base/utils.lua
parent3af56e9fc4ac64992b3733d3bb4d9de25de23231 (diff)
fix
Diffstat (limited to 'xmake/core/base/utils.lua')
-rw-r--r--xmake/core/base/utils.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua
index d30ecfaa9..caa633c7c 100644
--- a/xmake/core/base/utils.lua
+++ b/xmake/core/base/utils.lua
@@ -28,9 +28,12 @@ local string = require("base/string")
local log = require("base/log")
local dump = require("base/dump")
+-- dump value
function utils.dump(value, indent)
- dump(value, indent or "")
- io.write("\n")
+ if not option.get("quiet") then
+ dump(value, indent or "")
+ io.write("\n")
+ end
end
-- print string with newline