diff options
author | Logan Chien <loganchien@google.com> | 2019-11-27 07:24:42 -0800 |
---|---|---|
committer | Logan Chien <loganchien@google.com> | 2019-12-23 07:14:05 -0800 |
commit | a6bf7f2ee355559ec95378c7290702290aafb73c (patch) | |
tree | 46e5291f90223f14ac9333a66e192b202b9038d3 /tools/versioner/src/DeclarationDatabase.cpp | |
parent | d98dac41df84e3f99d9a2e2bf158dc29ca7edf53 (diff) |
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
Diffstat (limited to 'tools/versioner/src/DeclarationDatabase.cpp')
0 files changed, 0 insertions, 0 deletions