valior
valior

Reputation: 469

AOSP make verbose

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?

Upvotes: 14

Views: 14621

Answers (2)

Zoso
Zoso

Reputation: 3465

For someone seeking the answer on the Android build versions 10+

! The argument `showcommands` is no longer supported.
! Instead, the verbose log is always written to a compressed file in the output dir:
!
!   gzip -cd out/verbose.log.gz | less -R
!
! Older versions are saved in verbose.log.#.gz files

Here out is the directory located at <build_root>/out. This is taken from the code in the soong files here. This change was introduced with this commit.

Upvotes: 14

Aleksander
Aleksander

Reputation: 650

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

Upvotes: 22

Related Questions