From f9d1c1b714e704c5686b93a3d9bd47218d0b870a Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Fri, 24 Feb 2023 11:14:36 -0800 Subject: [PATCH] Add libclang_rt.ubsan_standalone to all debug builds This is needed to run tests that use `sanitize: { undefined: true }`. (this is a cherry-pick of fc6f2a43af1b8954d2780a14a88891fa0dd890c8) Test: run test that needs ubsan on cf_x86_64_phone without this change: fails to link with this change: works Bug: 255414852 Merged-In: Id5d3be9bafcc4dbaaf59ca55728ffc40b5cc4af5 Change-Id: Id5d3be9bafcc4dbaaf59ca55728ffc40b5cc4af5 --- target/product/base_system.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/target/product/base_system.mk b/target/product/base_system.mk index b66d2c7920..94b5c16965 100644 --- a/target/product/base_system.mk +++ b/target/product/base_system.mk @@ -383,6 +383,7 @@ PRODUCT_PACKAGES_DEBUG := \ iotop \ iperf3 \ iw \ + libclang_rt.ubsan_standalone \ logpersist.start \ logtagd.rc \ procrank \