about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2024-05-03 14:32:01 +0200
committerAlice Ryhl <aliceryhl@google.com>2024-05-03 14:32:08 +0200
commit40f0172c6aed0b2fb055c19108d226f8fb410f8c (patch)
treed06225635b01a71129568d86100bfc182204cdee /compiler/rustc_session/src
parent79734f1db8dbe322192dea32c0f6b80ab14c4c1d (diff)
downloadrust-40f0172c6aed0b2fb055c19108d226f8fb410f8c.tar.gz
rust-40f0172c6aed0b2fb055c19108d226f8fb410f8c.zip
Add -Zfixed-x18
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/options.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
index 7355e5b6953..48b6278f2f3 100644
--- a/compiler/rustc_session/src/options.rs
+++ b/compiler/rustc_session/src/options.rs
@@ -1684,6 +1684,8 @@ options! {
     fewer_names: Option<bool> = (None, parse_opt_bool, [TRACKED],
         "reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR) \
         (default: no)"),
+    fixed_x18: bool = (false, parse_bool, [TRACKED],
+        "make the x18 register reserved on AArch64 (default: no)"),
     flatten_format_args: bool = (true, parse_bool, [TRACKED],
         "flatten nested format_args!() and literals into a simplified format_args!() call \
         (default: yes)"),