Disable loading of libLLVM at runtime #7499
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: https://github.com/xamarin/monodroid/commit/d887d87d8f
Context: llvm/llvm-project@c10ca90
Disable loading of
libLLVM.soon Android API 21 and newer, because the symbol we're looking for is no longer present in the library on those Android versions.The hack was implemented on April 8, 2014:
LLVM commit referenced above made the stack pretty print feature opt-in instead of opt-out, removing the
DisablePrettyStackTracesymbol. Thus, LLVM no longer installs the signal handlers mentioned above and, in effect, doesn't break us anymore.Consequently, the code is completely disabled for .NET builds, since they build against API 21.
For classic builds we now check the API level and load the library only if running on API < 21.