diff options
| author | Eric Fiselier <eric@efcs.ca> | 2014-12-06 20:09:11 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2014-12-06 20:09:11 +0000 |
| commit | 2050bedf035d926df6f4557f9ebb2283cc016f94 (patch) | |
| tree | 8abd93a1429965b9388e46622a0f3fa5a6510fb6 | |
| parent | 3280a5d9f5b158d03174e1b47fe8b1c06bd1ded4 (diff) | |
| download | bcm5719-llvm-2050bedf035d926df6f4557f9ebb2283cc016f94.tar.gz bcm5719-llvm-2050bedf035d926df6f4557f9ebb2283cc016f94.zip | |
Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperly
llvm-svn: 223590
| -rw-r--r-- | libcxx/include/__config | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index df0bb77c04d..8fd80bcb713 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -713,4 +713,9 @@ extern "C" void __sanitizer_annotate_contiguous_container( # define _LIBCPP_WEAK __attribute__((__weak__)) #endif +#if defined(_LIBCPP_HAS_NO_MONOTONIC_CLOCK) && !defined(_LIBCPP_HAS_NO_THREADS) +# error _LIBCPP_HAS_NO_MONOTONIC_CLOCK may only be defined when \ + _LIBCPP_HAS_NO_THREADS is defined. +#endif + #endif // _LIBCPP_CONFIG |

