Skip to content

Commit b5638a3

Browse files
committed
Remove unneeded C symbols
These are now provided by `compiler-builtins`, so there is no need to also build the C versions. This was detected by checking for duplicate symbols and not excluding weak symbols (like CI currently does).
1 parent 6c5dd2d commit b5638a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler-builtins/build.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ mod c {
555555

556556
if (target.arch == "aarch64" || target.arch == "arm64ec") && consider_float_intrinsics {
557557
sources.extend(&[
558-
("__comparetf2", "comparetf2.c"),
559558
("__fe_getround", "fp_mode.c"),
560559
("__fe_raise_inexact", "fp_mode.c"),
561560
]);
@@ -570,11 +569,11 @@ mod c {
570569
}
571570

572571
if target.arch == "mips64" {
573-
sources.extend(&[("__netf2", "comparetf2.c"), ("__fe_getround", "fp_mode.c")]);
572+
sources.extend(&[("__fe_getround", "fp_mode.c")]);
574573
}
575574

576575
if target.arch == "loongarch64" {
577-
sources.extend(&[("__netf2", "comparetf2.c"), ("__fe_getround", "fp_mode.c")]);
576+
sources.extend(&[("__fe_getround", "fp_mode.c")]);
578577
}
579578

580579
// Remove the assembly implementations that won't compile for the target

0 commit comments

Comments
 (0)