Skip to content
Snippets Groups Projects
Commit 9f3b5dd4 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12245356 from 2c068738 to mainline-neuralnetworks-release

Change-Id: I9004d2a08bbcb2014532199000a9342ced7db868
parents 6de37ab7 2c068738
No related branches found
No related merge requests found
......@@ -104,6 +104,9 @@ libz_srcs = [
cc_defaults {
name: "libz_defaults",
defaults: [
"bug_24465209_workaround",
],
cflags: cflags_shared,
stl: "none",
......@@ -120,11 +123,6 @@ cc_defaults {
arch: {
arm: {
// TODO: This is to work around b/24465209. Remove after root cause
// is fixed.
pack_relocations: false,
ldflags: ["-Wl,--hash-style=both"],
cflags: cflags_arm,
},
arm64: {
......@@ -177,26 +175,9 @@ cc_defaults {
},
}
// TODO: Remove this when b/328163089 is fixed.
// Thin lto will be enabled by default in the future.
cc_defaults {
name: "libz_thin_lto_defaults",
target: {
android_arm64: {
lto: {
thin: true,
},
},
},
}
cc_library {
name: "libz",
defaults: [
"libz_defaults",
"libz_thin_lto_defaults",
],
defaults: ["libz_defaults"],
whole_static_libs: ["libz_static"],
......@@ -224,15 +205,14 @@ cc_library {
no_stubs: true,
},
},
afdo: true,
}
cc_library {
name: "libz_static",
defaults: ["libz_defaults"],
visibility: [
"//external/angle",
"//system/unwinding/libunwindstack",
],
visibility: ["//visibility:private"],
srcs: libz_srcs,
......@@ -255,7 +235,6 @@ cc_library {
// can and do differ over time.
cc_library {
name: "libz_stable",
defaults: ["libz_thin_lto_defaults"],
visibility: [
"//bootable/recovery/applypatch",
"//bootable/recovery/tests",
......@@ -315,6 +294,23 @@ cc_library {
],
}
cc_library_static {
name: "tflite_support_libz",
defaults: ["libz_defaults"],
srcs: [
"contrib/minizip/ioapi.c",
"contrib/minizip/unzip.c",
],
sdk_version: "current",
// TODO: switch this to "apex_inherit".
min_sdk_version: "30",
apex_available: [
"//apex_available:platform",
"com.android.adservices",
"com.android.extservices",
],
}
cc_test {
name: "zlib_tests",
srcs: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment