Merge "Append ".static" to ubsan runtime for static binaries" am: e2f39b038d
am: c1f3f6acbc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655969 Change-Id: Ib5dc63f70e94dff91ea9f3deae6e4e962a55cc8c
This commit is contained in:
commit
8b81b2b528
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue