No global ThinLTO for bionic

There are multiple build breakages with bionic when we enable ThinLTO
globally. Opt bionic out of ThinLTO for now.

#global-thinlto-opt-out

Test: TreeHugger
Bug: 169004486
Change-Id: I546a8074f9c3e0ddbd01d3b7cd730e215e3c0c49
This commit is contained in:
Yi Kong 2020-09-22 00:56:13 +08:00
parent 07c85f1688
commit 15a05a77b4
4 changed files with 20 additions and 0 deletions

View File

@ -1738,6 +1738,10 @@ cc_library {
// Sorting bss symbols by size usually results in less dirty pages at run
// time, because small symbols are grouped together.
sort_bss_symbols_by_size: true,
lto: {
never: true,
},
}
genrule {

View File

@ -124,6 +124,10 @@ cc_library {
"//apex_available:platform",
"com.android.runtime",
],
lto: {
never: true,
},
}
cc_library {
@ -200,6 +204,10 @@ cc_library {
"//apex_available:platform",
"com.android.runtime",
],
lto: {
never: true,
},
}
ndk_library {

View File

@ -506,6 +506,10 @@ cc_library {
"//apex_available:platform",
"com.android.runtime",
],
lto: {
never: true,
},
}
ndk_library {

View File

@ -427,6 +427,10 @@ cc_library {
"//apex_available:platform",
"com.android.runtime",
],
lto: {
never: true,
},
}
cc_test {