Skip to content

Commit cfda165

Browse files
committed
Disable overflow checks for compiler-builtins
Similar to how compiler-builtings has panic forced to abort, it must also have overflow checks disabled. Panicking is not available at that stage, so attempting to build with a global default of overflow checks enabled will fail. Bug: 184063125 Test: m Change-Id: I5ad666a18aa0b2c21439304c3cbee52c7da4caf6
1 parent e17589c commit cfda165

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Android.bp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ rust_library_rlib {
140140
flags: [
141141
"-C",
142142
"panic=abort",
143+
"-C",
144+
"overflow-checks=off",
143145
],
144146
edition: "2015",
145147
}

0 commit comments

Comments
 (0)