CMake: make __DATE__, __TIME__ etc. macro usage an error
authorAlp Toker <alp@nuanti.com>
Wed, 9 Jul 2014 03:39:32 +0000 (03:39 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 9 Jul 2014 03:39:32 +0000 (03:39 +0000)
commitd87c2fc2e33ed14ca8bb70e7753695b47cbf202d
treef6202bf0a6672692ce36002b94f6f37799169c81
parentb1d6b8ea7d647e80360c7574713609f60a164a70
CMake: make __DATE__, __TIME__ etc. macro usage an error

When LLVM_ENABLE_TIMESTAMPS has been disabled we can prevent the preprocessor
from embedding dates, times and file timestamps.

There are a few motivations for this:

  1) Validate the recent CMake feature detection bugfix from LLVM r212586 with
     a flag that's not actually available everywhere.

  2) Dogfood clang's new -Wdate-time warning from r210511 when bootstrapping.

  3) Encourage reproducible builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212587 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake