Create Apple Universal Binary #2745
-
I want to build bgfx static libraries as Apple Universal Binaries (=native support for arm64 and x64), but I am not sure how to accomplish that with GENie. Currently I build the x64 static libs that way:
What is the preferred way to build a universal library via command line? I can build arm64 separately via |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If there is nothing automatic already included in genie, you should be able to build both architectures and join them using lipo command line tool. |
Beta Was this translation helpful? Give feedback.
-
Yeah thank you, I ended up building it twice and merging it via lipo. I consider creating a PR for GENie. I have to have a deeper look into the tool first. |
Beta Was this translation helpful? Give feedback.
If there is nothing automatic already included in genie, you should be able to build both architectures and join them using lipo command line tool.
And if that works, you could add it to the bgfx genie build process and create a pull request;)