zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. Looks good. I dislike that we have to emit a file from CMake, but I can't really think of a better way. https://reviews.llvm.org/D41156