Re: [android-building] How to disable optimization when building AOSP?

2017-05-16 Thread Xie Wu
The url you provided can not be accessed because it requires authentication, then I found a similar web site. https://android.googlesource.com/platform/build/soong/+/master/cc/config/arm64_device.go#56 thank you for your reply. On Monday, May 15, 2017 at 9:43:24 AM UTC+8, Colin Cross wrote: > >

Re: [android-building] How to disable optimization when building AOSP?

2017-05-14 Thread Colin Cross
You can try changing the default flags for the architecture you are about, for example https://android.git.corp.google.com/platform/build/soong/+/master/cc/config/arm64_device.go#49, but it is likley to cause build problems in a few modules. For example, ART sets strict stack frame size limits tha

Re: [android-building] How to disable optimization when building AOSP?

2017-05-12 Thread Xie Wu
Thank you for your reply. if I want to build the whole AOSP without optimization, what should I do? On Friday, May 12, 2017 at 12:31:09 PM UTC+8, Colin Cross wrote: > > There is no generic way to disable optimization for a specific module. > For art-related modules you can use mma -j ART_DEBUG_O

Re: [android-building] How to disable optimization when building AOSP?

2017-05-11 Thread Colin Cross
There is no generic way to disable optimization for a specific module. For art-related modules you can use mma -j ART_DEBUG_OPT_FLAG=-O0, and then use the version suffixed with "d", for example dex2oatd or dalvikvm -XXlib:libartd.so On Thu, May 11, 2017 at 6:51 PM, Xie Wu wrote: > Hi, I found som

[android-building] How to disable optimization when building AOSP?

2017-05-11 Thread Xie Wu
Hi, I found some optimized variables when debugging so, such as libart.so. I tried "mma LOCAL_CFLAGS="-O0 -g"", but it does not work. (reference: How to make debug build of specific module under AOSP tree?