Merge pull request #273 from MikaelUrankar/freebsd_arm

FreeBSD arm needs clear_cache.c
master
Alex Crichton 2019-02-03 08:01:04 +01:00 committed by GitHub
commit b41ba0b570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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.