AOSP make verbose

valior picture valior · Mar 21, 2017 · Viewed 8.1k times · Source

How to see verbose compile command in AOSP build? ndk-build provides V=1 option. What about build from source? May I type similar to

. build/envsetup.sh
lunch 
make liblog V=1 

and see raw compiler execution lines?

Answer

Aleksander picture Aleksander · May 30, 2017

If you want to see the full compile/link/whatever commands being run, use the special showcommands target (which isn't a target to build per se, but a modifier to the output of the make command). E.g.: to build liblog you would do:

. build/envsetup.sh
lunch    
$ make showcommands liblog