-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link time optimization does not work with Clang #137
Comments
After a bunch of fiddling with our test for The problem is that From
You want |
Thanks, |
Oops, accidentally deleted the second half of my reply when I found the cause:
Did this work with prior releases? If it's a regression I might be able to get someone to look in to it.
Just FYI, it's not quite that soon. Until libc++ is 100% reliable GCC needs to stay because libstdc++ 4.9 doesn't support clang in I don't know exactly when this will happen, but I'll certainly call it out in the release notes at least a release ahead of the actual removal. |
I've just tried with |
When using compile option -flto (in LOCAL_CFLAGS) with Clang on NDK r12 and also '-Wl,-flto' in LOCAL_LDFLAGS, linker fails with these three errors for each source file:
When using GCC, LTO work as expected, except when targetting armeabi-v7a, when we get the following error when using LOCAL_ARM_NEON := true:
and this one when only several files are tagged with NEON tag:
vdup.32 q0,mask0
We believe this error is related to this bug in chromium project which was apparently fixed in GCC 5 and not present in clang. However, when trying with clang, we get the error described above.
Please advise how to turn on LTO on Clang or enable LTO on GCC with armeabi-v7a.
The text was updated successfully, but these errors were encountered: