ndk
ndk copied to clipboard
The Android Native Development Kit
#### Description The toolchain file provided for CMake (found in `build/cmake/android.toolchain.cmake`) enables the debug flags `-g` in Release mode. Excerpt of the toolchain file: ~~~ # Generic flags. list(APPEND ANDROID_COMPILER_FLAGS...
[`create_minidebuginfo`](https://cs.android.com/android/platform/superproject/main/+/main:art/tools/create_minidebuginfo/) is a tool that makes it possible to compress native `.so` debug information (in particular, unwind tables) so that they take less space on device disk. Unfortunately, this tool...
### Description https://r.android.com/c/platform/ndk/+/2762666/9/tests/device/hwasan-smoke/test_config.py ### Affected versions Canary ### Canary version ToT ### Host OS Linux, Mac, Windows ### Host OS version glinux ### Affected ABIs armeabi-v7a, arm64-v8a, x86, x86_64 ###...
> We just found a pretty big landmine with this feature. In the example we just encountered this on: > > ```c++ > if (__builtin_available(android 29, *)) { > ATrace_beginAsyncSection("ndk::asyncBeginEndSection",...
### Description Our project only enables the CXX compiler by default. ```cmake project(VVL LANGUAGES CXX) #
CMake supports clang-tidy (and has for a while): https://ortogonal.github.io/cmake-clang-tidy/ We probably need to set those properties in our toolchain/hooks so that CMake uses our clang-tidy instead of the host's.
### Description The code to reproduce the issue: https://gist.github.com/zheng-yu-yang/a225cc68350ae828cf68b2591730871c With NDK r25c/r26b1 x64, the output is: ``` src: e0 b8 81 e0 b8 b3 e0 b8 a5 e0 b8 b1...
### Description Order files require some processing before they're consumed by lld (why? could we just upstream whatever the script is doing into lld?): https://android.googlesource.com/toolchain/pgo-profiles/+/refs/heads/main/scripts/create_orderfile.py. We should include that script...
#### Description Add -fsanitize=thread to compile and link flags, and get `error: undefined reference to '__tsan_func_entry'` (and other tsan functions) link errors. #### Environment Details * NDK Version: 20.0.5594570 *...
### Description some command-line tools can not be built as fully statically linked executable due to lack of `liblog.a`. as a workaround, can I build it from AOSP?