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)
commit7099cd7549fd02970fa52314ba055231a340435e
tree017dcb44db8e1fba3eaae2fca823ae3679dc9bdf
parent0068397f34e10b444a8b6b63b372fcc4ccbe5985
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.

llvm-svn: 212587
llvm/cmake/modules/HandleLLVMOptions.cmake