Make -Zfixed-x18 into a target modifier

This commit is contained in:
Alice Ryhl
2025-05-05 12:34:22 +00:00
parent db074a06fe
commit 4b58c5034a
4 changed files with 38 additions and 1 deletions

View File

@@ -2208,7 +2208,7 @@ 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],
fixed_x18: bool = (false, parse_bool, [TRACKED TARGET_MODIFIER],
"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 \