浏览代码

add compiler-rt fallbacks on aarch64-musl

Thomas Vigouroux 4 年之前
父节点
当前提交
c172ebdfd3
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      build.rs

+ 12 - 0
build.rs

@@ -419,6 +419,18 @@ mod c {
             if target_os != "windows" {
                 sources.extend(&[("__multc3", "multc3.c")]);
             }
+
+            if target_env == "musl" {
+                sources.extend(&[
+                    ("__addtf3", "addtf3.c"),
+                    ("__multf3", "multf3.c"),
+                    ("__subtf3", "subtf3.c"),
+                    ("__divtf3", "divtf3.c"),
+                    ("__powitf2", "powitf2.c"),
+                    ("__fe_getround", "fp_mode.c"),
+                    ("__fe_raise_inexact", "fp_mode.c"),
+                ]);
+            }
         }
 
         if target_arch == "mips" {