aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-11-28 16:38:14 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-12-05 14:52:09 +0100
commitf3cb834600e7465ac8f5167c45376a534579e2d3 (patch)
tree75de14740dee3e23f666f1943d1922d2a01e96e3 /gcc/rust/rust-session-manager.cc
parent9666f2b169b5192b5c827d605cc80e6987e1aac5 (diff)
downloadgcc-f3cb834600e7465ac8f5167c45376a534579e2d3.zip
gcc-f3cb834600e7465ac8f5167c45376a534579e2d3.tar.gz
gcc-f3cb834600e7465ac8f5167c45376a534579e2d3.tar.bz2
wip: Add long flag and enable it on release builds
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r--gcc/rust/rust-session-manager.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 513bf50..79bf552 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -427,6 +427,11 @@ Session::handle_crate_name (const AST::Crate &parsed_crate)
void
Session::compile_crate (const char *filename)
{
+#ifdef RUST_RELEASE
+ if (!flag_rust_experimental)
+ gcc_unreachable ();
+#endif
+
RAIIFile file_wrap (filename);
if (!file_wrap.ok ())
{