This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 564
No embedded bitcode for android native binaries #2963
Comments
Hello. |
That’s great news. Would it be possible to also have a setting to enable the embedded bitcode like we have for iOS?! embedBitcode "bitcode" // for release binaries. |
What exactly are your scenarious of LLVM bitcode usage? |
Can I contact you by mail to discuss this further ? |
Sure, or use PM in public Slack (@olonho). |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I played with kotlin native and discovered that its not possible to embed the llvm bitcode into the output binary for Android. The reason is that the kotlin native toolchain is using llvm-lto to link the bitcode objects and apply LTO. Is there a reason why you use llvm-lto instead of clang with the -flto option ?!
The problem is that the "-fembed-bitcode" option is implemented in clang itself instead of llvm so choosing llvm-lto to to apply lto on the binaries will never be able to embed the bitcode into the objects.
Here in Thales we develop some tools that make use of the embedded bitcode. Thats why it would be great to find a solution for this.
Thanks,
Peter
The text was updated successfully, but these errors were encountered: