commit | 39f5cc4153b40dddae3ca8b0615879e89523c0ef | [log] [tgz] |
---|---|---|
author | Nelson Li <nelsonli@google.com> | Wed Jul 17 10:06:43 2024 +0800 |
committer | Nelson Li <nelsonli@google.com> | Wed Jul 17 16:56:58 2024 +0800 |
tree | d9555e5058c1217a1e3c9e887e508829fcf17744 | |
parent | 3a2d9d2c50d19b54ac1b8b054a1864f3b05ea401 [diff] |
Add ASAN_ENABLED and SANITIZE_TARGET_SYSTEM_ENABLED to Soong config variables: `SANITIZE_TARGET` is a variable in Android's build system used to enable sanitizers. Currently, Soong only supports enabling SANITIZE for individual modules in Android.bp. Adding ASAN_ENABLED and SANITIZE_TARGET_SYSTEM_ENABLED as Soong config variables would allow Soong to also support building with Sanitizers by directly setting the SANITIZE_TARGET environment variable. Bug: 353164536 Test: SANITIZE_TARGET_SYSTEM=true SANITIZE_TARGET=address m -j asan_extract Change-Id: I542239ee25d210d903d2481a2b1426f756656308
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.