summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/sandbox/modules/utils.lua')
-rw-r--r--xmake/core/sandbox/modules/utils.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua
index 395642268..d5f5c73c7 100644
--- a/xmake/core/sandbox/modules/utils.lua
+++ b/xmake/core/sandbox/modules/utils.lua
@@ -38,6 +38,11 @@ end
-- print with the builtin variables and newline
function sandbox_utils.print(format, ...)
+ -- print non-formated string
+ if type(format) ~= "string" then
+ return print(format, ...)
+ end
+
-- done
return io.write(vformat(format, ...) .. "\n")
end