diff options
| author | Doug Goldstein <cardoe@cardoe.com> | 2016-04-15 09:13:28 -0500 |
|---|---|---|
| committer | Doug Goldstein <cardoe@cardoe.com> | 2016-07-27 10:24:36 -0700 |
| commit | 9c83fa41b05dd0a2ffedc88e9b97508341e2b92a (patch) | |
| tree | c095f993515626c6120ee102ac7c652182d5887f /src | |
| parent | a373b8437b205cce01a19e7cdef17a50ff7ec84a (diff) | |
| download | rust-9c83fa41b05dd0a2ffedc88e9b97508341e2b92a.tar.gz rust-9c83fa41b05dd0a2ffedc88e9b97508341e2b92a.zip | |
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 <cardoe@cardoe.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_back/target/mod.rs | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/src/librustc_back/target/mod.rs b/src/librustc_back/target/mod.rs index 99bc2684802..78edcd55541 100644 --- a/src/librustc_back/target/mod.rs +++ b/src/librustc_back/target/mod.rs @@ -434,35 +434,47 @@ impl Target { } ); } - key!(cpu); - key!(ar); + key!(is_builtin, bool); key!(linker); + key!(ar); + key!(pre_link_args, list); + key!(pre_link_objects_exe, list); + key!(pre_link_objects_dll, list); + key!(late_link_args, list); + key!(post_link_objects, list); + key!(post_link_args, list); + key!(cpu); + key!(features); + key!(dynamic_linking, bool); + key!(executables, bool); key!(relocation_model); key!(code_model); + key!(disable_redzone, bool); + key!(eliminate_frame_pointer, bool); + key!(function_sections, bool); key!(dll_prefix); key!(dll_suffix); key!(exe_suffix); key!(staticlib_prefix); key!(staticlib_suffix); - key!(features); - key!(dynamic_linking, bool); - key!(executables, bool); - key!(disable_redzone, bool); - key!(eliminate_frame_pointer, bool); - key!(function_sections, bool); key!(target_family, optional); key!(is_like_osx, bool); + key!(is_like_solaris, bool); key!(is_like_windows, bool); key!(is_like_msvc, bool); + key!(is_like_android, bool); key!(linker_is_gnu, bool); key!(has_rpath, bool); key!(no_compiler_rt, bool); key!(no_default_libraries, bool); - key!(pre_link_args, list); - key!(post_link_args, list); + key!(position_independent_executables, bool); key!(archive_format); key!(allow_asm, bool); key!(custom_unwind_resume, bool); + key!(lib_allocation_crate); + key!(exe_allocation_crate); + key!(has_elf_tls, bool); + key!(obj_is_bitcode, bool); key!(max_atomic_width, u64); base |
