rust/compiler/rustc_llvm
bors 59ae5eba7e Auto merge of #132514 - Zalathar:print-target-cpus, r=jieyouxu
Port most of `--print=target-cpus` to Rust

The logic and formatting needed by `--print=target-cpus` has historically been carried out in C++ code. Originally it used `printf` to write directly to the console, but later it switched over to writing to a `std::ostringstream` and then passing its buffer to a callback function pointer.

This PR replaces that C++ code with a very simple function that writes a list of CPU names to a `&RustString`, with the rest of the logic and formatting being handled by ordinary safe Rust code.
2024-11-03 11:09:38 +00:00
..
llvm-wrapper Auto merge of #132514 - Zalathar:print-target-cpus, r=jieyouxu 2024-11-03 11:09:38 +00:00
src update cfgs 2024-09-05 17:24:01 +01:00
build.rs Add system libs when cross compiling for Windows 2024-09-15 12:38:55 +00:00
Cargo.toml Unpin cc and upgrade to the latest version 2024-09-30 13:31:42 -04:00