commit | cd414d4c2ef03fbced9cbccacc7d0a972210310d | [log] [tgz] |
---|---|---|
author | Mårten Kongstad <amhk@google.com> | Thu Jul 27 14:25:33 2023 +0200 |
committer | Mårten Kongstad <amhk@google.com> | Thu Jul 27 15:54:45 2023 +0200 |
tree | 8f4dcb666bf8b82578f5e8d81376a2f6e25dcf95 | |
parent | a5043704ed45f45c7cfe16146dd283c341804882 [diff] |
aconfig: improve error messages Propagate anyhow errors to main.rs and commands.rs to improve the error message. As an example. instead of just "bad flag declaration: exactly one bug required", aconfig will now print the following. ---- 8< ---- Error: failed to create cache Caused by: 0: failed to parse build/make/tools/aconfig/tests/test.aconfig 1: bad flag declaration: missing description ---- >8 ---- Error messages can be improved further by including additional information in the protos.rs error cases. This will be handled in a follow-up CL. Bug: 290300657 Test: manual: introduce error in an aconfig file and run `m all_aconfig_declarations` Test: atest aconfig.test Change-Id: Id278f4877e5794b95913ae8ba0ca3ee211293f38
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.