Skip to content

Commit b08b42d

Browse files
author
Jorge Aparicio
committed
build intrinsics for thumbv7em-none-eabihf with -mfloat-abi=hard
1 parent f974f88 commit b08b42d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ fn main() {
8484
// implementation is not valid for the arch, then gcc will error when compiling it.
8585
if llvm_target[0].starts_with("thumb") {
8686
cfg.flag("-mthumb");
87+
88+
if llvm_target.last() == Some(&"eabihf") {
89+
cfg.flag("-mfloat-abi=hard");
90+
}
8791
}
8892

8993
if llvm_target[0] == "thumbv6m" {

0 commit comments

Comments
 (0)