Convert `asan.options` and `asan_extract` to Android.bp
In the original Android.mk, `asan.option` is only enabled when "address" is present in SANITIZE_TARGET. `asan_extract` is only enabled when `SANITIZE_TARGET_SYSTEM` is `true` and `address` is present in SANITIZE_TARGET. However, in the normal build system design, a module should `not` decide when it should be enabled. Therefore, the `ifeq` condition should be directly removed during conversion. The correct approach is: Wait until converting `init.environ.rc`, then use `select` or similar methods to determine whether it should use `asan.option` or `asan_extract`. Bug: 353164536 Test: SANITIZE_TARGET=address m init.environ.rc SANITIZE_TARGET_SYSTEM=true SANITIZE_TARGET=address m init.environ.rc Change-Id: I69af3199536a3ba9f54dcfa198295826303e2d22
Loading
Please register or sign in to comment