aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-07-13 09:28:59 -0700
committerDylan Baker <dylan@pnwbakers.com>2023-07-15 12:22:30 -0700
commit76eba998504b4205ea04859ba4c26f4a609afd94 (patch)
tree1a08572c98073c7c2270b6fc092eac8e81517e13 /mesonbuild
parentadaea4136fdbf24933f243400f7771128f74deed (diff)
downloadmeson-76eba998504b4205ea04859ba4c26f4a609afd94.zip
meson-76eba998504b4205ea04859ba4c26f4a609afd94.tar.gz
meson-76eba998504b4205ea04859ba4c26f4a609afd94.tar.bz2
rust: disable overflow-checks by default
These result in very large binaries when linked, and are not generally useful. A user can turn them back on by passing `-C overflow-checks=yes` manually via `-Drust_args` or the `RUSTFLAGS` environment variable fixes: #11785
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/rust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py
index 13674ed..ef0390e 100644
--- a/mesonbuild/compilers/rust.py
+++ b/mesonbuild/compilers/rust.py
@@ -217,7 +217,7 @@ class RustCompiler(Compiler):
def get_assert_args(self, disable: bool) -> T.List[str]:
action = "no" if disable else "yes"
- return ['-C', f'debug-assertions={action}']
+ return ['-C', f'debug-assertions={action}', '-C', 'overflow-checks=no']
class ClippyRustCompiler(RustCompiler):