Skip to content

Commit e93e513

Browse files
committed
generate big endian code for armeb targets
1 parent a4515df commit e93e513

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,12 @@ impl Build {
12631263
cmd.args.push("-march=armv7-m".into());
12641264
}
12651265
if target.starts_with("armebv7r") | target.starts_with("armv7r") {
1266+
if target.starts_with("armeb") {
1267+
cmd.args.push("-mbig-endian".into());
1268+
} else {
1269+
cmd.args.push("-mlittle-endian".into());
1270+
}
1271+
12661272
// ARM mode
12671273
cmd.args.push("-marm".into());
12681274

0 commit comments

Comments
 (0)