From 275b37d66cd6b5bc28f4cf97339de629d3f86e9c Mon Sep 17 00:00:00 2001 From: MikaelUrankar Date: Sat, 2 Feb 2019 19:52:41 +0100 Subject: [PATCH] FreeBSD arm needs clear_cache.c --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 057f5d9..9a7c05e 100644 --- a/build.rs +++ b/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.