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?
mma - Builds all of the modules in the current directory, and their dependencies. mmma - Builds all of the modules in the supplied directories, and their dependencies. croot - cd to the top of the tree. clean - m clean deletes all of the output and intermediate files for this configuration.
To download and build the AOSP project you should have a 64-bit version of either Linux (18.04 or greater) or Mac OS installed. Here, RAM plays a very crucial role when it comes to building / compiling the android source code. According to the official docs, it is recommended that you should have at least 16GB of RAM.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With