commit | d8febc98b3020b52f9e6c888986054c87fac0235 | [log] [tgz] |
---|---|---|
author | Tomislav Novak <tnovak@meta.com> | Tue Aug 22 10:51:36 2023 -0700 |
committer | Tomislav Novak <tnovak@meta.com> | Tue Aug 22 18:15:04 2023 +0000 |
tree | 4848a9de654bf70c6ae2f422f20c8871bedb28de | |
parent | f7171f4dff44e22cd8babbf85f58e4cb4c5e87cc [diff] |
make: HWASan exclude path support Like aosp/2495518, but adds the ability to centrally disable HWASan for multiple modules when building with SANITIZE_TARGET=hwaddress. HWASan takes precedence over CFI and several other sanitizers that it's incompatible with[1], which can be problematic for modules that require those sanitizers (e.g. those that depend on vendor prebuilts where only sanitized variants are provided). This patch adds an easy way to disable HWASan for such modules while still keeping it globally enabled. Test: build with HWASAN_EXCLUDE_PATHS set and verify with readelf that relevant modules have no references to __hwasan symbols [1] https://android.googlesource.com/platform/build/+/bb31ca1168df6326d6f8eee7a834a974aafed6ed/core/config_sanitizers.mk#236 Change-Id: I64185b570bc64e61680c3212934a02d80a4904b9
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.