Fix the MIPS baremetal build
authorAlexander Richardson <arichardson.kde@gmail.com>
Thu, 30 Nov 2017 18:37:04 +0000 (18:37 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Thu, 30 Nov 2017 18:37:04 +0000 (18:37 +0000)
commit23e70e6f577ac3c22c486dbe49d99f115e241956
treed2436c8fc104a6f96067ca075524f458f6042580
parent27f55dda1dd48defb3335f451a6bbc8fcc6729a5
Fix the MIPS baremetal build

Summary:
Currently sys/cachectl.h is used unconditionally on MIPS although it is
only available on Linux and will fail the build when targeting baremetal

Reviewers: petarj

Reviewed By: petarj

Subscribers: sdardis, krytarowski

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

llvm-svn: 319455
compiler-rt/lib/builtins/clear_cache.c