Index: projects/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp
--- projects/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp.orig	2019-12-11 20:15:30.000000000 +0100
+++ projects/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp	2020-01-24 15:27:59.202418000 +0100
@@ -38,6 +38,11 @@
 # if __BYTE_ORDER__ ==  __ORDER_BIG_ENDIAN__
 # define SHA_BIG_ENDIAN
 # endif
+#elif defined __FreeBSD__
+# include <machine/endian.h>
+# if __BYTE_ORDER__ ==  __ORDER_BIG_ENDIAN__
+#  define SHA_BIG_ENDIAN
+# endif
 #else // ! defined __LITTLE_ENDIAN__
 # include <endian.h> // machine/endian.h
 # if __BYTE_ORDER__ ==  __ORDER_BIG_ENDIAN__
Index: tools/clang/CMakeLists.txt
--- tools/clang/CMakeLists.txt.orig	2019-12-11 20:15:30.000000000 +0100
+++ tools/clang/CMakeLists.txt	2020-01-24 11:18:10.823476000 +0100
@@ -208,10 +208,6 @@
   # code may call MSan interceptors like strlen, leading to false positives.
   if(NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
     set (LIBXML2_FOUND 0)
-    find_package(LibXml2 2.5.3 QUIET)
-    if (LIBXML2_FOUND)
-      set(CLANG_HAVE_LIBXML 1)
-    endif()
   endif()
 endif()
 
