瀏覽代碼

FreeBSD arm needs clear_cache.c

MikaelUrankar 6 年之前
父節點
當前提交
275b37d66c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      build.rs

+ 4 - 0
build.rs

@@ -311,6 +311,10 @@ mod c {
                 ],
             );
 
+            if target_os == "freebsd" {
+                sources.extend(&["clear_cache.c"]);
+            }
+            
             // First of all aeabi_cdcmp and aeabi_cfcmp are never called by LLVM.
             // Second are little-endian only, so build fail on big-endian targets.
             // Temporally workaround: exclude these files for big-endian targets.