[CMake] Support generating Config.h
authorChris Bieneman <beanz@apple.com>
Fri, 14 Apr 2017 22:03:45 +0000 (22:03 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 14 Apr 2017 22:03:45 +0000 (22:03 +0000)
commitb90bee044b892a4989ff7bb86d5d4a5e58cd466c
tree5ab3b279bcd7f744140c0508dff128c6f1d30663
parent116aebcae07df3c59bf7fcf03fb5bd2cd519277a
[CMake] Support generating Config.h

Summary:
This patch removes the hand maintained config files in favor of auto-generating the config file. We will still need to maintain the defines for the Xcode builds on Mac, but all CMake builds use the generated header instead.

This will enable finer grained platform support tests and enable supporting LLDB on more platforms with less manual maintenance.

I have only tested this patch on Darwin, and any help testing it out on other platforms would be greatly appreciated. I've probably messed something up somewhere.

Reviewers: labath, zturner

Reviewed By: labath

Subscribers: krytarowski, emaste, srhines, lldb-commits, mgorny

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

llvm-svn: 300372
12 files changed:
lldb/cmake/modules/LLDBConfig.cmake
lldb/include/lldb/Host/Config.h
lldb/include/lldb/Host/Config.h.cmake [new file with mode: 0644]
lldb/include/lldb/Host/android/Config.h [deleted file]
lldb/include/lldb/Host/freebsd/Config.h [deleted file]
lldb/include/lldb/Host/linux/Config.h [deleted file]
lldb/include/lldb/Host/macosx/Config.h [deleted file]
lldb/include/lldb/Host/mingw/Config.h [deleted file]
lldb/include/lldb/Host/msvc/Config.h [deleted file]
lldb/include/lldb/Host/netbsd/Config.h [deleted file]
lldb/include/lldb/Host/openbsd/Config.h [deleted file]
lldb/source/Host/common/File.cpp