commit | 378bf736ed162b67b9bc0667be484cbae295cc67 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Mar 30 11:49:08 2021 -0700 |
committer | Matthew Maurer <mmaurer@google.com> | Tue Mar 30 11:49:08 2021 -0700 |
tree | a3b8bcbf8510b53a3b17c312fd3029d67d87a6d2 | |
parent | f682410cbf2c4f6fcc5787f033fc7cfc90a481a7 [diff] [blame] |
Enable overflow checks in Rust Bug: 184063125 Test: Existing Rust Test Suites Change-Id: I1b8f3cb22a229bfc7da81bf3857f6bf5a9f6c220
diff --git a/rust/config/global.go b/rust/config/global.go index 9208ddb..3fde738 100644 --- a/rust/config/global.go +++ b/rust/config/global.go
@@ -47,6 +47,7 @@ "-C debuginfo=2", "-C opt-level=3", "-C relocation-model=pic", + "-C overflow-checks=on", // Use v0 mangling to distinguish from C++ symbols "-Z symbol-mangling-version=v0", }