Merge "Append ".static" to ubsan runtime for static binaries"
This commit is contained in:
@@ -1129,6 +1129,9 @@ func sanitizerRuntimeMutator(mctx android.BottomUpMutatorContext) {
|
||||
Bool(c.sanitize.Properties.Sanitize.Undefined) ||
|
||||
Bool(c.sanitize.Properties.Sanitize.All_undefined) {
|
||||
runtimeLibrary = config.UndefinedBehaviorSanitizerRuntimeLibrary(toolchain)
|
||||
if c.staticBinary() {
|
||||
runtimeLibrary += ".static"
|
||||
}
|
||||
}
|
||||
|
||||
if runtimeLibrary != "" && (toolchain.Bionic() || c.sanitize.Properties.UbsanRuntimeDep) {
|
||||
|
Reference in New Issue
Block a user