summary refs log tree commit diff
path: root/build_rust.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-10-03 11:20:18 +0100
committerGitHub <noreply@github.com>2022-10-03 11:20:18 +0100
commit343038c3c3260e484cd1c7b73aa4b217ce3edac4 (patch)
tree19299468e8e7753f1a2da37b8296a130554b729c /build_rust.py
parentRevert the general exception recording introduced in #13814 (#13969) (diff)
downloadsynapse-343038c3c3260e484cd1c7b73aa4b217ce3edac4.tar.xz
Always build Rust extension in release mode (#14009)
Fixes #13990
Diffstat (limited to 'build_rust.py')
-rw-r--r--build_rust.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_rust.py b/build_rust.py
index 5c5e557ee8..662474dcb4 100644
--- a/build_rust.py
+++ b/build_rust.py
@@ -15,6 +15,9 @@ def build(setup_kwargs: Dict[str, Any]) -> None:
         path=cargo_toml_path,
         binding=Binding.PyO3,
         py_limited_api=True,
+        # We force always building in release mode, as we can't tell the
+        # difference between using `poetry` in development vs production.
+        debug=False,
     )
     setup_kwargs.setdefault("rust_extensions", []).append(extension)
     setup_kwargs["zip_safe"] = False