Skip to content

Commit a6dd847

Browse files
committed
Auto merge of #13444 - ehuss:fix-custom-target, r=weihanglo
Update target data layout for LLVM update. LLVM was updated, and that caused a change in the expected data layout for the target.
2 parents 9d23d30 + d3c2a77 commit a6dd847

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/build-std/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ fn cross_custom() {
155155
r#"
156156
{
157157
"llvm-target": "x86_64-unknown-none-gnu",
158-
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
158+
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
159159
"arch": "x86_64",
160160
"target-endian": "little",
161161
"target-pointer-width": "64",
@@ -196,7 +196,7 @@ fn custom_test_framework() {
196196
r#"
197197
{
198198
"llvm-target": "x86_64-unknown-none-gnu",
199-
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
199+
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
200200
"arch": "x86_64",
201201
"target-endian": "little",
202202
"target-pointer-width": "64",

tests/testsuite/custom_target.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub trait Copy {
2222
const SIMPLE_SPEC: &str = r#"
2323
{
2424
"llvm-target": "x86_64-unknown-none-gnu",
25-
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
25+
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
2626
"arch": "x86_64",
2727
"target-endian": "little",
2828
"target-pointer-width": "64",

0 commit comments

Comments
 (0)