Skip to content

Commit 96fc0f4

Browse files
authored
Rollup merge of rust-lang#78993 - petrochenkov:specdash, r=oli-obk
rustc_target: Fix dash vs underscore mismatches in option names Fixes rust-lang#78981 (regression from rust-lang#78875, the old option names used dashes)
2 parents d57212d + dd682cb commit 96fc0f4

File tree

1 file changed

+8
-8
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+8
-8
lines changed

compiler/rustc_target/src/spec/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1444,8 +1444,8 @@ impl Target {
14441444
}
14451445

14461446
key!(is_builtin, bool);
1447-
key!(endian = "target_endian");
1448-
key!(c_int_width = "target_c_int_width");
1447+
key!(endian = "target-endian");
1448+
key!(c_int_width = "target-c-int-width");
14491449
key!(os);
14501450
key!(env);
14511451
key!(vendor);
@@ -1482,7 +1482,7 @@ impl Target {
14821482
key!(exe_suffix);
14831483
key!(staticlib_prefix);
14841484
key!(staticlib_suffix);
1485-
key!(os_family = "target_family", optional);
1485+
key!(os_family = "target-family", optional);
14861486
key!(abi_return_struct_as_int, bool);
14871487
key!(is_like_osx, bool);
14881488
key!(is_like_solaris, bool);
@@ -1527,7 +1527,7 @@ impl Target {
15271527
key!(limit_rdylib_exports, bool);
15281528
key!(override_export_symbols, opt_list);
15291529
key!(merge_functions, MergeFunctions)?;
1530-
key!(mcount = "target_mcount");
1530+
key!(mcount = "target-mcount");
15311531
key!(llvm_abiname);
15321532
key!(relax_elf_relocations, bool);
15331533
key!(llvm_args, list);
@@ -1679,8 +1679,8 @@ impl ToJson for Target {
16791679
target_val!(data_layout);
16801680

16811681
target_option_val!(is_builtin);
1682-
target_option_val!(endian, "target_endian");
1683-
target_option_val!(c_int_width, "target_c_int_width");
1682+
target_option_val!(endian, "target-endian");
1683+
target_option_val!(c_int_width, "target-c-int-width");
16841684
target_option_val!(os);
16851685
target_option_val!(env);
16861686
target_option_val!(vendor);
@@ -1717,7 +1717,7 @@ impl ToJson for Target {
17171717
target_option_val!(exe_suffix);
17181718
target_option_val!(staticlib_prefix);
17191719
target_option_val!(staticlib_suffix);
1720-
target_option_val!(os_family, "target_family");
1720+
target_option_val!(os_family, "target-family");
17211721
target_option_val!(abi_return_struct_as_int);
17221722
target_option_val!(is_like_osx);
17231723
target_option_val!(is_like_solaris);
@@ -1762,7 +1762,7 @@ impl ToJson for Target {
17621762
target_option_val!(limit_rdylib_exports);
17631763
target_option_val!(override_export_symbols);
17641764
target_option_val!(merge_functions);
1765-
target_option_val!(mcount, "target_mcount");
1765+
target_option_val!(mcount, "target-mcount");
17661766
target_option_val!(llvm_abiname);
17671767
target_option_val!(relax_elf_relocations);
17681768
target_option_val!(llvm_args);

0 commit comments

Comments
 (0)