Skip to content

Commit 59353af

Browse files
committed
Remove superfluous cc flags
Latest `cc-rs` already manage all arm/thumb flags, so We can safely remove this piece of code.
1 parent 5a88717 commit 59353af

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

build.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -141,29 +141,6 @@ mod c {
141141
cfg.define("VISIBILITY_HIDDEN", None);
142142
}
143143

144-
// NOTE Most of the ARM intrinsics are written in assembly. Tell gcc which arch we are going
145-
// to target to make sure that the assembly implementations really work for the target. If
146-
// the implementation is not valid for the arch, then gcc will error when compiling it.
147-
if llvm_target[0].starts_with("thumb") {
148-
cfg.flag("-mthumb");
149-
}
150-
151-
if target_arch_arm && llvm_target.last() == Some(&"eabihf") {
152-
cfg.flag("-mfloat-abi=hard");
153-
}
154-
155-
if llvm_target[0] == "thumbv6m" {
156-
cfg.flag("-march=armv6-m");
157-
}
158-
159-
if llvm_target[0] == "thumbv7m" {
160-
cfg.flag("-march=armv7-m");
161-
}
162-
163-
if llvm_target[0] == "thumbv7em" {
164-
cfg.flag("-march=armv7e-m");
165-
}
166-
167144
let mut sources = Sources::new();
168145
sources.extend(
169146
&[

0 commit comments

Comments
 (0)