Skip to content

Commit 9c83fa4

Browse files
committed
librustc_back: expose all target options via JSON
Not all TargetOptions are exposed via the JSON interface to create different targets. This exposes all the missing items and reorders them to match the structure so that it is easier in the future to identify missing items. Signed-off-by: Doug Goldstein <[email protected]>
1 parent a373b84 commit 9c83fa4

File tree

1 file changed

+22
-10
lines changed
  • src/librustc_back/target

1 file changed

+22
-10
lines changed

src/librustc_back/target/mod.rs

+22-10
Original file line numberDiff line numberDiff line change
@@ -434,35 +434,47 @@ impl Target {
434434
} );
435435
}
436436

437-
key!(cpu);
438-
key!(ar);
437+
key!(is_builtin, bool);
439438
key!(linker);
439+
key!(ar);
440+
key!(pre_link_args, list);
441+
key!(pre_link_objects_exe, list);
442+
key!(pre_link_objects_dll, list);
443+
key!(late_link_args, list);
444+
key!(post_link_objects, list);
445+
key!(post_link_args, list);
446+
key!(cpu);
447+
key!(features);
448+
key!(dynamic_linking, bool);
449+
key!(executables, bool);
440450
key!(relocation_model);
441451
key!(code_model);
452+
key!(disable_redzone, bool);
453+
key!(eliminate_frame_pointer, bool);
454+
key!(function_sections, bool);
442455
key!(dll_prefix);
443456
key!(dll_suffix);
444457
key!(exe_suffix);
445458
key!(staticlib_prefix);
446459
key!(staticlib_suffix);
447-
key!(features);
448-
key!(dynamic_linking, bool);
449-
key!(executables, bool);
450-
key!(disable_redzone, bool);
451-
key!(eliminate_frame_pointer, bool);
452-
key!(function_sections, bool);
453460
key!(target_family, optional);
454461
key!(is_like_osx, bool);
462+
key!(is_like_solaris, bool);
455463
key!(is_like_windows, bool);
456464
key!(is_like_msvc, bool);
465+
key!(is_like_android, bool);
457466
key!(linker_is_gnu, bool);
458467
key!(has_rpath, bool);
459468
key!(no_compiler_rt, bool);
460469
key!(no_default_libraries, bool);
461-
key!(pre_link_args, list);
462-
key!(post_link_args, list);
470+
key!(position_independent_executables, bool);
463471
key!(archive_format);
464472
key!(allow_asm, bool);
465473
key!(custom_unwind_resume, bool);
474+
key!(lib_allocation_crate);
475+
key!(exe_allocation_crate);
476+
key!(has_elf_tls, bool);
477+
key!(obj_is_bitcode, bool);
466478
key!(max_atomic_width, u64);
467479

468480
base

0 commit comments

Comments
 (0)