diff options
| author | ruki <[email protected]> | 2025-12-07 11:17:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-07 17:15:59 +0800 |
| commit | cae5b0a17dc7d0eb5599c0d5a92fab69d39983d5 (patch) | |
| tree | d459ac9eeb285bb4ba48d7ef5a5f9da375b53434 /xmake/rules/utils/bin2obj/xmake.lua | |
| parent | 00f6b0ba403a86ad542a1fbecc142064aa641f0d (diff) | |
support for iphoneos in bin2macho
Diffstat (limited to 'xmake/rules/utils/bin2obj/xmake.lua')
| -rw-r--r-- | xmake/rules/utils/bin2obj/xmake.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/rules/utils/bin2obj/xmake.lua b/xmake/rules/utils/bin2obj/xmake.lua index 2bdd9c3a8..def3f56e8 100644 --- a/xmake/rules/utils/bin2obj/xmake.lua +++ b/xmake/rules/utils/bin2obj/xmake.lua @@ -50,12 +50,16 @@ rule("utils.bin2obj") -- get architecture local arch = target:arch() + -- get platform + local plat = target:plat() + -- convert binary file to object file local argv = { "-i", path(sourcefile_bin), "-o", path(objectfile), "-f", format, - "-a", arch + "-a", arch, + "-p", plat } if symbol_prefix ~= "_binary_" then table.insert(argv, "--symbol-prefix") |
