mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
link to llvm changes that prompted the special cases
This commit is contained in:
parent
fabfd1fd93
commit
225e01ee79
@ -145,8 +145,10 @@ pub unsafe fn create_module<'ll>(
|
||||
let llvm_version = llvm_util::get_version();
|
||||
if llvm_version < (16, 0, 0) {
|
||||
if sess.target.arch == "s390x" {
|
||||
// See https://reviews.llvm.org/D131158
|
||||
target_data_layout = target_data_layout.replace("-v128:64", "");
|
||||
} else if sess.target.arch == "riscv64" {
|
||||
// See https://reviews.llvm.org/D116735
|
||||
target_data_layout = target_data_layout.replace("-n32:64-", "-n64-");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user