[mlir] Emit errors if global constructors are found within lib/
authorRiver Riddle <riddleriver@gmail.com>
Fri, 10 Apr 2020 19:57:18 +0000 (12:57 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Fri, 10 Apr 2020 20:04:32 +0000 (13:04 -0700)
commit3db57d14ecf55efd86cd3007dc755d27669e7828
treeef203968d5f789792509c40cbc8ecfdd3d5d675a
parentebf22a49357934b622f30ef715d56b92955fa661
[mlir] Emit errors if global constructors are found within lib/

Summary: This avoids adding any additional global constructors, like cl::opt. There is a temporary exception on IR/, which has a few cl::opts that require a bit of plumbing to remove.

Differential Revision: https://reviews.llvm.org/D77824
mlir/lib/CMakeLists.txt
mlir/lib/IR/CMakeLists.txt