We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8da513 commit a8418c0Copy full SHA for a8418c0
compiler/rustc_codegen_llvm/src/context.rs
@@ -150,17 +150,14 @@ pub unsafe fn create_module<'ll>(
150
target_data_layout =
151
"e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
152
.to_string();
153
- }
154
- if sess.target.arch == "wasm32" {
+ } else if sess.target.arch == "wasm32" {
155
target_data_layout = target_data_layout.replace("-p10:8:8-p20:8:8", "");
156
}
157
158
if llvm_version < (16, 0, 0) {
159
if sess.target.arch == "s390x" {
160
target_data_layout = target_data_layout.replace("-v128:64", "");
161
162
-
163
- if sess.target.arch == "riscv64" {
+ } else if sess.target.arch == "riscv64" {
164
target_data_layout = target_data_layout.replace("-n32:64-", "-n64-");
165
166
0 commit comments