Skip to content

Commit dd682cb

Browse files
committed
rustc_target: Fix dash vs underscore mismatches in option names
1 parent 7f5a42b commit dd682cb

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
@@ -1428,8 +1428,8 @@ impl Target {
14281428
}
14291429

14301430
key!(is_builtin, bool);
1431-
key!(endian = "target_endian");
1432-
key!(c_int_width = "target_c_int_width");
1431+
key!(endian = "target-endian");
1432+
key!(c_int_width = "target-c-int-width");
14331433
key!(os);
14341434
key!(env);
14351435
key!(vendor);
@@ -1466,7 +1466,7 @@ impl Target {
14661466
key!(exe_suffix);
14671467
key!(staticlib_prefix);
14681468
key!(staticlib_suffix);
1469-
key!(os_family = "target_family", optional);
1469+
key!(os_family = "target-family", optional);
14701470
key!(abi_return_struct_as_int, bool);
14711471
key!(is_like_osx, bool);
14721472
key!(is_like_solaris, bool);
@@ -1511,7 +1511,7 @@ impl Target {
15111511
key!(limit_rdylib_exports, bool);
15121512
key!(override_export_symbols, opt_list);
15131513
key!(merge_functions, MergeFunctions)?;
1514-
key!(mcount = "target_mcount");
1514+
key!(mcount = "target-mcount");
15151515
key!(llvm_abiname);
15161516
key!(relax_elf_relocations, bool);
15171517
key!(llvm_args, list);
@@ -1663,8 +1663,8 @@ impl ToJson for Target {
16631663
target_val!(data_layout);
16641664

16651665
target_option_val!(is_builtin);
1666-
target_option_val!(endian, "target_endian");
1667-
target_option_val!(c_int_width, "target_c_int_width");
1666+
target_option_val!(endian, "target-endian");
1667+
target_option_val!(c_int_width, "target-c-int-width");
16681668
target_option_val!(os);
16691669
target_option_val!(env);
16701670
target_option_val!(vendor);
@@ -1701,7 +1701,7 @@ impl ToJson for Target {
17011701
target_option_val!(exe_suffix);
17021702
target_option_val!(staticlib_prefix);
17031703
target_option_val!(staticlib_suffix);
1704-
target_option_val!(os_family, "target_family");
1704+
target_option_val!(os_family, "target-family");
17051705
target_option_val!(abi_return_struct_as_int);
17061706
target_option_val!(is_like_osx);
17071707
target_option_val!(is_like_solaris);
@@ -1746,7 +1746,7 @@ impl ToJson for Target {
17461746
target_option_val!(limit_rdylib_exports);
17471747
target_option_val!(override_export_symbols);
17481748
target_option_val!(merge_functions);
1749-
target_option_val!(mcount, "target_mcount");
1749+
target_option_val!(mcount, "target-mcount");
17501750
target_option_val!(llvm_abiname);
17511751
target_option_val!(relax_elf_relocations);
17521752
target_option_val!(llvm_args);

0 commit comments

Comments
 (0)