diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-06-22 14:32:49 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-06-22 14:32:49 -0700 |
commit | 471d6d8b11e63af883bb3e11524f81d3dbd90029 (patch) | |
tree | c8bd7e63fc184882a5d845cc72056434d609252c /core/binary.mk | |
parent | e7145cfa30ed066921473528b6a7f575ec5f20ac (diff) | |
parent | 4a65f812373e1ecfa6e7058d635e998429a4cf17 (diff) | |
download | build-471d6d8b11e63af883bb3e11524f81d3dbd90029.zip build-471d6d8b11e63af883bb3e11524f81d3dbd90029.tar.gz build-471d6d8b11e63af883bb3e11524f81d3dbd90029.tar.bz2 |
am 4a65f812: am 6e587f53: Merge "Profiling use aprof, enable by LOCAL_ENABLE_APROF or LOCAL_ENABLE_APROF_JNI"
* commit '4a65f812373e1ecfa6e7058d635e998429a4cf17':
Profiling use aprof, enable by LOCAL_ENABLE_APROF or LOCAL_ENABLE_APROF_JNI
Diffstat (limited to 'core/binary.mk')
-rw-r--r-- | core/binary.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/binary.mk b/core/binary.mk index a3e0c06..8918e47 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -153,6 +153,15 @@ ifeq ($(strip $(LOCAL_NO_FDO_SUPPORT)),) LOCAL_LDFLAGS += $(TARGET_FDO_CFLAGS) endif +#################################################### +## Add profiling flags if aprof is turned on +#################################################### +ifeq ($(strip $(LOCAL_ENABLE_APROF)),true) + # -ffunction-sections and -fomit-frame-pointer are conflict with -pg + LOCAL_CFLAGS += -fno-omit-frame-pointer -fno-function-sections -pg + LOCAL_CPPFLAGS += -fno-omit-frame-pointer -fno-function-sections -pg +endif + ########################################################### ## Explicitly declare assembly-only __ASSEMBLY__ macro for ## assembly source |