diff options
| author | ruki <[email protected]> | 2025-12-06 23:32:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-07 17:15:58 +0800 |
| commit | 435a3017657b15c08673e1fe239b7f958321e073 (patch) | |
| tree | 978d62d5d8ea020bfd7468a015337f13d71eaff9 | |
| parent | 523c5d2026735fa335ca4bee297c01eead4a1a03 (diff) | |
export bin2coff
| -rw-r--r-- | xmake/core/sandbox/modules/utils.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index 88ccd6bac..f366459aa 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -158,6 +158,16 @@ if utils._bin2c then end end +-- generate COFF object file from the binary file +if utils.bin2coff then + function sandbox_utils.bin2coff(binaryfile, outputfile, symbol_prefix, arch, basename) + local ok, errors = utils.bin2coff(binaryfile, outputfile, symbol_prefix, arch, basename) + if not ok then + os.raise(errors) + end + end +end + -- return module return sandbox_utils |
