summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-18 22:14:25 +0800
committerruki <[email protected]>2025-01-18 22:14:50 +0800
commita0298b704583fc08f66f9da5d121039d0ea98e02 (patch)
treee9590d47c2d93cd61ce760269b76f603cf249978
parentce35c1abd92ce10f024210bde748e0bbb86d8250 (diff)
fix quiet for warnings
-rw-r--r--xmake/core/base/utils.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua
index 99add99bc..a1070a6a9 100644
--- a/xmake/core/base/utils.lua
+++ b/xmake/core/base/utils.lua
@@ -208,7 +208,9 @@ end
-- add warning message
function utils.warning(format, ...)
- assert(format)
+ if option.get("quiet") then
+ return
+ end
-- format message
local args = table.pack(...)