rust/src
Jubilee 6d74563b20
Rollup merge of #136608 - kulst:ptx_target_features, r=bjorn3
Pass through of target features to llvm-bitcode-linker and handling them

When using the llvm-bitcode-linker (`linker-flavor=llbc`) target-features are not passed through and are not handled by it.
The llvm-bitcode-linker is mainly used as a self contained linker to link llvm bitcode for the nvptx64 target. It uses `llvm-link`, `opt` and `llc` internally. To produce a `.ptx` file of a specific ptx-version it is necessary to pass the version to llc with the `--mattr` option. Without explicitly setting it, the emitted `.ptx`-version is the minimum supported version of the `--target-cpu`.

I would like to be able to explicitly set the ptx version as [some llvm problems only occur in earlier `.ptx`-versions](https://github.com/llvm/llvm-project/issues/112998).

Therefore this pull request adds support for passing target features to llvm-bitcode-linker and handling them.
I was not quite sure if adding these features to `rustc_target/src/target_features.rs` is necessary or not. If so I will gladly add these.

    r? ``@kjetilkjeka``
2025-02-20 14:58:17 -08:00
..
bootstrap Rollup merge of #127793 - ChaiTRex:zed_support, r=Kobzol 2025-02-19 18:52:03 +01:00
build_helper Update username in build helper example 2025-01-28 10:51:30 +01:00
ci Auto merge of #137023 - Kobzol:bump-sccache, r=marcoieni 2025-02-20 05:59:04 +00:00
doc Rollup merge of #131651 - Patryk27:avr-unknown-unknown, r=tgross35 2025-02-20 14:58:15 -08:00
etc Add support for the Zed IDE to ./x setup 2025-02-15 17:30:20 -05:00
gcc@fd3498bff0 Update GCC version 2024-09-06 16:01:46 +02:00
librustdoc Rollup merge of #137106 - chenyukang:yukang-fix-sidebar-sort, r=notriddle 2025-02-20 00:55:12 +01:00
llvm-project@92e80685d0 Update to LLVM 20 2025-02-14 11:02:28 +01:00
rustc-std-workspace update rustc-std-workspace crates 2024-11-04 07:45:15 +01:00
rustdoc-json-types rustdoc-json-types: Document that crate name isn't package name. 2025-02-01 19:57:59 +00:00
tools Rollup merge of #136608 - kulst:ptx_target_features, r=bjorn3 2025-02-20 14:58:17 -08:00
README.md
stage0 Update bootstrap compiler and rustfmt 2025-02-08 22:07:11 +00:00
version Bump to version 1.87.0 2025-02-14 09:55:45 -08:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.