[Lldb-commits] [PATCH] D14816: Use thumb instruction set for ldb-server on android arm

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 19 05:53:20 PST 2015


tberghammer created this revision.
tberghammer added reviewers: labath, ovyalov.
tberghammer added a subscriber: lldb-commits.
Herald added subscribers: srhines, danalbert, tberghammer, rengolin, aemerson.

Use thumb instruction set for ldb-server on android arm

This change reduce the size of the lldb-server binary on android-arm from a release build by ~5MB

http://reviews.llvm.org/D14816

Files:
  cmake/platforms/Android.cmake

Index: cmake/platforms/Android.cmake
===================================================================
--- cmake/platforms/Android.cmake
+++ cmake/platforms/Android.cmake
@@ -103,7 +103,7 @@
 elseif( ANDROID_ABI STREQUAL "armeabi" )
  # 64 bit atomic operations used in c++ libraries require armv7-a instructions
  # armv5te and armv6 were tried but do not work.
- set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -march=armv7-a" )
+ set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -march=armv7-a -mthumb" )
  if( LLVM_BUILD_STATIC )
   # Temporary workaround for static linking with the latest API.
   set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -DANDROID_ARM_BUILD_STATIC" )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14816.40635.patch
Type: text/x-patch
Size: 673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151119/d303e908/attachment.bin>


More information about the lldb-commits mailing list