summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2022-10-05 11:29:19 -0700
committerYabin Cui <yabinc@google.com>2022-10-05 11:32:28 -0700
commitd9d49b4b2c249b91b85b7251aa4c1ab57bbd334e (patch)
treef84446324ff820c8389ff15a17ef41c005f40aef
parent782b800e1c89231a2c3325dec73b24f9e01b760b (diff)
downloadextras-d9d49b4b2c249b91b85b7251aa4c1ab57bbd334e.tar.gz
simpleperf: use libdexfile_static in fuzzer binary.
Bug: 249956344 Test: run libsimpleperf_report_fuzzer Change-Id: I6d1bcc53113431201166ad24ecf8bed8c36b3db2
-rw-r--r--simpleperf/Android.bp20
1 files changed, 8 insertions, 12 deletions
diff --git a/simpleperf/Android.bp b/simpleperf/Android.bp
index fba08d7a..b77e99b1 100644
--- a/simpleperf/Android.bp
+++ b/simpleperf/Android.bp
@@ -123,11 +123,6 @@ cc_defaults {
"libc++fs",
],
},
- android: {
- static_libs: [
- "libc",
- ],
- },
linux_glibc_x86_64: {
stl: "libc++_static",
},
@@ -389,6 +384,9 @@ cc_binary {
target: {
android: {
static_executable: true,
+ static_libs: [
+ "libc",
+ ],
},
android_arm: {
dist: {
@@ -717,7 +715,7 @@ filegroup {
cc_fuzz {
name: "libsimpleperf_report_fuzzer",
defaults: [
- "simpleperf_shared_libs",
+ "simpleperf_static_libs",
],
host_supported: true,
srcs: [
@@ -725,14 +723,12 @@ cc_fuzz {
],
static_libs: [
"libsimpleperf",
- "libLLVMObject",
- "libLLVMBitReader",
- "libLLVMMC",
- "libLLVMMCParser",
- "libLLVMCore",
- "libLLVMSupport",
],
target: {
+ linux: {
+ // Fuzzer may not be able to load libdexfile. So statically link it.
+ static_libs: ["libdexfile_static"],
+ },
windows: {
enabled: false,
},