diff options
| -rw-r--r-- | lldb/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | lldb/include/lldb/Host/Config.h | 4 | ||||
| -rw-r--r-- | lldb/include/lldb/Host/msvc/Config.h | 30 |
3 files changed, 35 insertions, 1 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 0253a1d876d..b73f87635dc 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -89,7 +89,7 @@ include_directories("${CMAKE_CURRENT_BINARY_DIR}/../clang/include") # lldb requires c++11 to build. Make sure that we have a compiler and standard
# library combination that can do that.
-if (MSVC11)
+if (MSVC11 OR MSVC12)
# Do nothing, we're good.
elseif (NOT MSVC)
# gcc and clang require the -std=c++0x or -std=c++11 flag.
diff --git a/lldb/include/lldb/Host/Config.h b/lldb/include/lldb/Host/Config.h index 25598e9374c..80616b747cf 100644 --- a/lldb/include/lldb/Host/Config.h +++ b/lldb/include/lldb/Host/Config.h @@ -26,6 +26,10 @@ #include "lldb/Host/mingw/Config.h" +#elif defined(_MSC_VER) + +#include "lldb/Host/msvc/Config.h" + #else #error undefined platform diff --git a/lldb/include/lldb/Host/msvc/Config.h b/lldb/include/lldb/Host/msvc/Config.h new file mode 100644 index 00000000000..cdf6f21e098 --- /dev/null +++ b/lldb/include/lldb/Host/msvc/Config.h @@ -0,0 +1,30 @@ +//===-- Config.h -----------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +//---------------------------------------------------------------------- +// LLDB currently doesn't have a dynamic configuration mechanism, so we +// are going to hardcode things for now. Eventually these files will +// be auto generated by some configuration script that can detect +// platform functionality availability. +//---------------------------------------------------------------------- + +#ifndef liblldb_Platform_Config_h_ +#define liblldb_Platform_Config_h_ + +#define LLDB_DISABLE_POSIX + +//#define LLDB_CONFIG_TERMIOS_SUPPORTED 1 + +//#define LLDB_CONFIG_TILDE_RESOLVES_TO_USER 1 + +//#define LLDB_CONFIG_DLOPEN_RTLD_FIRST_SUPPORTED 1 + +//#define LLDB_CONFIG_FCNTL_GETPATH_SUPPORTED 1 + +#endif // #ifndef liblldb_Platform_Config_h_ |

