-fno-unwind-tables and -fno-asynchronous-unwind-tables does not work NDK clang++

前端 未结 1 1569
借酒劲吻你
借酒劲吻你 2021-01-26 18:02

I\'m compiling my C++ code using clang++ that comes with ndk21. I\'ve set both compiler flags -fno-unwind-tables and -fno-asynchronous-unwind-tables but the number of entries i

相关标签:
1条回答
  • 2021-01-26 18:36

    Typically the reason is that you're depending on some other libraries that do have unwind tables. The C++ stdlib is definitely built with them, so if you're using libc++_static.a they'll be added to your library. Since that code is already compiled, your compiler flags won't have any effect on it :)

    I should also note that there are other reasons that you might want unwind tables even if you're not using exceptions. Crash handlers that you use might depend on them, for example.

    0 讨论(0)
提交回复
热议问题