Use __has_include rather than a configure-time macro to determine if
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 18 Aug 2016 18:22:22 +0000 (18:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 18 Aug 2016 18:22:22 +0000 (18:22 +0000)
commitc33b837af399c75bc1dec0aaa1d5b3944964b1c6
tree7bb246fc12a420a3cb2707bc8e4e928e4f2cae9c
parent99fd9c5f56bcc22822e8a5938e52b78c6142cacc
Use __has_include rather than a configure-time macro to determine if
<sys/resource.h> is available. This should fix out-of-tree builds, at the cost
of not providing the higher rlimits to stage 1 clang when built with an old
host compiler not implementing this feature yet (bootstrap builds should be
fine, though).

llvm-svn: 279112
clang/tools/driver/cc1_main.cpp