rust/compiler/rustc_codegen_ssa/src/back
Yuki Okushi 33eb3c05c5
Rollup merge of #98214 - petrochenkov:islike, r=compiler-errors
rustc_target: Remove some redundant target properties

`is_like_emscripten` is equivalent to `os == "emscripten"`, so it's removed.
`is_like_fuchsia` is equivalent to `os == "fuchsia"`, so it's removed.
`is_like_osx` also falls into the same category and is equivalent to `vendor == "apple"`, but it's commonly used so I kept it as is for now.

`is_like_(solaris,windows,wasm)` are combinations of different operating systems or architectures (see compiler/rustc_target/src/spec/tests/tests_impl.rs) so they are also kept as is.

I think `is_like_wasm` (and maybe `is_like_osx`) are sufficiently closed sets, so we can remove these fields as well and replace them with methods like `fn is_like_wasm() { arch == "wasm32" || arch == "wasm64" }`.
On other hand, `is_like_solaris` and `is_like_windows` are sufficiently open and I can imagine custom targets introducing other values for `os`.
This is kind of a gray area.
2022-06-24 16:43:45 +09:00
..
rpath Remove LibSource 2021-07-05 10:49:07 +02:00
archive.rs Remove the source archive functionality of ArchiveWriter 2022-06-19 12:56:31 +00:00
command.rs Simplify implementation of -Z gcc-ld 2022-05-25 23:55:22 +03:00
link.rs Rollup merge of #98214 - petrochenkov:islike, r=compiler-errors 2022-06-24 16:43:45 +09:00
linker.rs Update Emscripten's no_default_libraries handling 2022-06-21 13:21:16 -07:00
lto.rs Merge new_metadata into codegen_allocator 2022-04-30 21:20:08 +02:00
metadata.rs Session object: Set OS/ABI 2022-06-23 11:20:52 +02:00
mod.rs Use the object crate for metadata reading 2021-05-07 18:48:58 +02:00
rpath.rs pass -Wl,-z,origin to set DF_ORIGIN when using rpath 2021-12-17 11:27:14 +00:00
symbol_export.rs Use decorated names for linked_symbols on Windows 2022-04-27 13:17:13 +01:00
write.rs Support lint expectations for --force-warn lints (RFC 2383) 2022-06-16 08:16:43 +02:00