Files
rust/compiler/rustc_codegen_ssa
Jakob Koschel 1bd00d4f72 Add support for -Zsanitizer-cfi-minimal-runtime
For production use, we should only link in the ubsan_minimal runtime,
instead of the complete ubsan runtime. This adds support for both
cfi-recover and cfi-diag to use the minimal runtime when
`-Zsanitizer-cfi-minimal-runtime` is specified.

This also includes tests, to ensure the flag can only be used if either
cfi-recover or cfi-diag is enabled, it doesn't disrupt the original
behavior, and links in the correct runtime when specified.

Co-Authored-By: Bastian Kersting <bkersting@google.com>
2026-09-21 09:43:59 +00:00
..
…

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.