platform_bionic/tools/versioner
Logan Chien a6bf7f2ee3 versioner: Add a built-in macro for conditional compilation
This commit adds a built-in macro for conditional compilation because
__attribute__((annotate(...))) may pull unused static inline functions
into object files.

We must not generate those functions in object files because it can
result in undefined references to __strchr_chk on linux_glibc.

Bug: 118991081
Test: source development/vndk/tools/header-checker/android/envsetup.sh && \
      source build/envsetup.sh && \
      lunch aosp_arm64-userdebug && \
      m versioner && \
      ./bionic/tools/versioner/run_tests.py
Change-Id: I0c9d967413ec8e8655e91316973a79b81e2129b1
2019-12-23 07:14:05 -08:00
..
platforms versioner: Build SymbolDatabase from version scripts 2018-10-25 14:54:39 +08:00
src versioner: Add a built-in macro for conditional compilation 2019-12-23 07:14:05 -08:00
tests Remove __INTRODUCED_IN_FUTURE. 2019-03-14 13:34:21 -07:00
Android.bp Convert versioner to Android.bp 2016-12-15 10:44:41 -08:00
current versioner: introduce. 2016-06-02 13:40:36 -07:00
dependencies versioner: add symlink for dependencies. 2017-04-27 17:25:23 -07:00
README.md versioner: Port to clang-r339409b 2018-10-31 14:53:30 +08:00
run_tests.py versioner: add idempotence test that uses the bionic headers. 2016-08-15 14:28:25 -07:00

versioner

Use clang to verify the correctness of bionic's availability attributes against the NDK platform definitions.

Build

Build with LLVM_BUILD_HOST_TOOLS=true mma -j48

Use

versioner -p platforms current dependencies