diff options
| author | ruki <[email protected]> | 2025-12-07 17:47:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-07 17:47:01 +0800 |
| commit | f4cd87b0135d84932f186bc068a5232912ee43b9 (patch) | |
| tree | 1e1bba0e8a5160cc4a9cd8f5de0bdef15ea2ba64 /xmake/core/sandbox/modules/utils.lua | |
| parent | 35aeaac3f956f26f188ebab40c443b64d2cb2f95 (diff) | |
update bin2c
Diffstat (limited to 'xmake/core/sandbox/modules/utils.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/utils.lua | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index ef1361db9..92977be62 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -148,45 +148,6 @@ function sandbox_utils.assert(value, format, ...) return value end --- generate c/c++ code from the binary file -if utils._bin2c then - function sandbox_utils.bin2c(binaryfile, outputfile, opt) - local ok, errors = utils.bin2c(binaryfile, outputfile, opt) - if not ok then - os.raise(errors) - end - end -end - --- generate COFF object file from the binary file -if utils.bin2coff then - function sandbox_utils.bin2coff(binaryfile, outputfile, symbol_prefix, arch, basename, zeroend) - local ok, errors = utils.bin2coff(binaryfile, outputfile, symbol_prefix, arch, basename, zeroend) - if not ok then - os.raise(errors) - end - end -end - --- generate Mach-O object file from the binary file -if utils.bin2macho then - function sandbox_utils.bin2macho(binaryfile, outputfile, symbol_prefix, plat, arch, basename, target_minver, xcode_sdkver, zeroend) - local ok, errors = utils.bin2macho(binaryfile, outputfile, symbol_prefix, plat, arch, basename, target_minver, xcode_sdkver, zeroend) - if not ok then - os.raise(errors) - end - end -end - --- generate ELF object file from the binary file -if utils.bin2elf then - function sandbox_utils.bin2elf(binaryfile, outputfile, symbol_prefix, arch, basename, zeroend) - local ok, errors = utils.bin2elf(binaryfile, outputfile, symbol_prefix, arch, basename, zeroend) - if not ok then - os.raise(errors) - end - end -end -- return module return sandbox_utils |
