Rollup merge of #134165 - durin42:wasm-target-string, r=jieyouxu
wasm(32|64): update alignment string See llvm/llvm-project@c5ab70c508 `@rustbot` label: +llvm-main
This commit is contained in:
commit
eefefbea2f
8 changed files with 13 additions and 7 deletions
|
@ -164,6 +164,11 @@ pub(crate) unsafe fn create_module<'ll>(
|
|||
// See https://github.com/llvm/llvm-project/pull/118004
|
||||
target_data_layout = target_data_layout.replace("-i128:128", "");
|
||||
}
|
||||
if sess.target.arch.starts_with("wasm32") || sess.target.arch.starts_with("wasm64") {
|
||||
// LLVM 20 updates the wasm(32|64) layout to correctly align 128 bit integers to 128 bit.
|
||||
// See https://github.com/llvm/llvm-project/pull/119204
|
||||
target_data_layout = target_data_layout.replace("-i128:128", "");
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure the data-layout values hardcoded remain the defaults.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue