[cfe-dev] Generating android native code coverage (using clang)
mbm_kalpesh
mbm_kalpesh at yahoo.co.in
Fri Apr 18 01:55:23 PDT 2014
Hi,
we were able to generate code coverage for native c++ code on GCC. it was
generating gcda files and gcov files.
But now our product is using clang 3.4 for compilation.
1. I am building this for 'arm' but NDK does not seems to have
libprofile_rt.a?
2. When I copied it from llvm, it still lacking symbols like:
error: undefined reference to 'llvm_gcda_summary_info'
error: undefined reference to 'llvm_gcov_init'
I have updated flags as follows:
LOCAL_CFLAGS=$(LOCAL_CFLAGS) -O0 --coverage
LOCAL_LDLIBS=$(LOCAL_LDLIBS) \
-lprofile_rt
3. MAC/ios team is able to use same way for generating code coverage on
clang (libclang_rt.profile_osx.a.) but android toolchain does not have
similar lib, any specific reason?
4. I saw that lib "libclang_rt.profile-x86_64.a" (downloaded from llvm
binaries) has this symbol but not able to find similar lib for 'arm' arch.
Any help will be highly appreciated !
Thanks,
Kalpesh
--
View this message in context: http://clang-developers.42468.n3.nabble.com/Generating-android-native-code-coverage-using-clang-tp4038885.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev
mailing list