about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-12-29 20:10:37 +0000
committerbors <bors@rust-lang.org>2024-12-29 20:10:37 +0000
commit14ee63a3c651bb7a243c8b07333749ab4b152e13 (patch)
tree5a736c8af693f9afd9a8d11508501e21cc2c856f /compiler/rustc_codegen_llvm/src/common.rs
parent5c0a6e68cfdad859615c2888de76505f13e6f01b (diff)
parentb235cc9e703c323a3ae01951980c776e916ea34e (diff)
downloadrust-14ee63a3c651bb7a243c8b07333749ab4b152e13.tar.gz
rust-14ee63a3c651bb7a243c8b07333749ab4b152e13.zip
Auto merge of #134765 - Noratrieb:linux-none-cant-unwind-silly, r=jieyouxu
Improve default target options for x86_64-unknown-linux-none

Without a standard library, we cannot unwind, so it should be panic=abort by default.

Additionally, it does not have std because while it is Linux, it cannot use libc, which std uses today for Linux.

Using PIE by default may be surprising to users, as shown in #134763, so I've documented it explicitly. I'm not sure if we want to count that as fixing the issue or not.

cc `@morr0ne,` as you added the target (and are the maintainer), and `@Noratrieb,` who reviewed that PR (:D).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions