[libFuzzer][MSVC] Enable building libFuzzer with MSVC
authorJonathan Metzman <metzman@chromium.org>
Tue, 22 Jan 2019 18:59:25 +0000 (18:59 +0000)
committerJonathan Metzman <metzman@chromium.org>
Tue, 22 Jan 2019 18:59:25 +0000 (18:59 +0000)
commit3c535a60ddd83d15602e45567f3796d471ab998b
treefeea0abc1292e24df4891ca8a04d19adb63a2423
parentd0418341fd799689dc97f67d465dd98595d2515c
[libFuzzer][MSVC] Enable building libFuzzer with MSVC

Summary:
Enable building libFuzzer with MSVC.

* Don't try to include <endian.h> in FuzzerSHA1.cpp. MSVC
  doesn't have this header, and WINDOWS is always little
  endian (even on ARM)

Subscribers: srhines, mgorny, javed.absar, kristof.beyls

Differential Revision: https://reviews.llvm.org/D56510

llvm-svn: 351855
compiler-rt/cmake/config-ix.cmake
compiler-rt/lib/fuzzer/CMakeLists.txt
compiler-rt/lib/fuzzer/FuzzerBuiltinsMsvc.h
compiler-rt/lib/fuzzer/FuzzerSHA1.cpp
compiler-rt/lib/fuzzer/FuzzerValueBitMap.h