Use -fno-sanitize-link-runtime for bionic sanitizers
Currently when using sanitizers and building for the device the -fsanitize= argument is not passed to the linker so that the linker won't add the runtimes, which have already been added as explicit dependencies. Pass -fno-sanitize-link-runtime instead in case the linker has other behaviors when passed -fsanitize= besides adding the runtimes. Also check for bionic instead of host so that linux bionic gets the same linker behavior as bionic for the device. Test: m USE_HOST_MUSL=true host-native Test: m checkbuild Change-Id: I0f2966e2fd4ae8adc5cb21eb116c349bcc0c668f
Loading
Please register or sign in to comment