summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-07 16:40:21 +0800
committerruki <[email protected]>2025-12-07 17:47:07 +0800
commit21ba2e7097070cfecd127951274a5cf9d691a614 (patch)
tree01b901b665054c7155fa4d4f126598c48ccc04bb
parentf4cd87b0135d84932f186bc068a5232912ee43b9 (diff)
add deprecated tips
-rw-r--r--xmake/core/sandbox/modules/utils.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua
index 92977be62..df90492be 100644
--- a/xmake/core/sandbox/modules/utils.lua
+++ b/xmake/core/sandbox/modules/utils.lua
@@ -26,6 +26,7 @@ local colors = require("base/colors")
local option = require("base/option")
local log = require("base/log")
local deprecated = require("base/deprecated")
+local binutils = require("base/binutils")
local try = require("sandbox/modules/try")
local catch = require("sandbox/modules/catch")
local vformat = require("sandbox/modules/vformat")
@@ -148,6 +149,11 @@ function sandbox_utils.assert(value, format, ...)
return value
end
+-- generate c/c++ code from the binary file (deprecated, use binutils.bin2c instead)
+function sandbox_utils.bin2c(binaryfile, outputfile, opt)
+ deprecated.add("binutils.bin2c", "utils.bin2c")
+ return binutils.bin2c(binaryfile, outputfile, opt)
+end
-- return module
return sandbox_utils