[sanitizer] Max out allowed macOS deployment targets to 10.9
authorKuba Brecka <kuba.brecka@gmail.com>
Mon, 14 Nov 2016 18:27:47 +0000 (18:27 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Mon, 14 Nov 2016 18:27:47 +0000 (18:27 +0000)
commit41c52889b90ded563e1aa56cfa7764e083323b00
tree2a5f9aca591e3c1a6c07d8814be0f5c0ce0ee42c
parent1c7fe126ee16857243738ebc1dbaea69caffefb1
[sanitizer] Max out allowed macOS deployment targets to 10.9

It's not a good idea to build the sanitizers with e.g. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12, because some deprecated functions that we intercept will cause build errors. Let's limit the allowed deployment targets to 10.9 (which is the default anyway), and warn when it's set above.

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

llvm-svn: 286859
compiler-rt/cmake/config-ix.cmake