Skip to content

Commit 4428e79

Browse files
committed
scripts/generate_rust_target.rs: rustfmt
Signed-off-by: Asahi Lina <[email protected]>
1 parent 15a1574 commit 4428e79

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

scripts/generate_rust_target.rs

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,26 @@ fn main() {
154154
ts.push("arch", "x86_64");
155155
let mut llvm_version: u32 = 18;
156156
if cfg.has("RUSTC_LLVM_VERSION_TEXT") {
157-
let llvm_str = cfg.0.get("CONFIG_RUSTC_LLVM_VERSION_TEXT").unwrap().split_once(".").unwrap().0;
157+
let llvm_str = cfg
158+
.0
159+
.get("CONFIG_RUSTC_LLVM_VERSION_TEXT")
160+
.unwrap()
161+
.split_once(".")
162+
.unwrap()
163+
.0;
158164
llvm_version = llvm_str.parse().unwrap();
159165
}
160166
// intentially broken indent
161167
if llvm_version >= 18 {
162-
ts.push(
163-
"data-layout",
164-
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
165-
);
168+
ts.push(
169+
"data-layout",
170+
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
171+
);
166172
} else {
167-
ts.push(
168-
"data-layout",
169-
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
170-
);
173+
ts.push(
174+
"data-layout",
175+
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
176+
);
171177
}
172178
let mut features = "-3dnow,-3dnowa,-mmx,+soft-float".to_string();
173179
if cfg.has("RETPOLINE") {

0 commit comments

Comments
 (0)