[Lldb-commits] [lldb] r190068 - Added MSVC config file and makefile support.
Virgile Bello
virgile.bello at gmail.com
Thu Sep 5 09:56:12 PDT 2013
Author: xen2
Date: Thu Sep 5 11:56:12 2013
New Revision: 190068
URL: http://llvm.org/viewvc/llvm-project?rev=190068&view=rev
Log:
Added MSVC config file and makefile support.
Added:
lldb/trunk/include/lldb/Host/msvc/
lldb/trunk/include/lldb/Host/msvc/Config.h
Modified:
lldb/trunk/CMakeLists.txt
lldb/trunk/include/lldb/Host/Config.h
Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=190068&r1=190067&r2=190068&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Thu Sep 5 11:56:12 2013
@@ -89,7 +89,7 @@ include_directories("${CMAKE_CURRENT_BIN
# 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.
Modified: lldb/trunk/include/lldb/Host/Config.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/Config.h?rev=190068&r1=190067&r2=190068&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/Config.h (original)
+++ lldb/trunk/include/lldb/Host/Config.h Thu Sep 5 11:56:12 2013
@@ -26,6 +26,10 @@
#include "lldb/Host/mingw/Config.h"
+#elif defined(_MSC_VER)
+
+#include "lldb/Host/msvc/Config.h"
+
#else
#error undefined platform
Added: lldb/trunk/include/lldb/Host/msvc/Config.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/msvc/Config.h?rev=190068&view=auto
==============================================================================
--- lldb/trunk/include/lldb/Host/msvc/Config.h (added)
+++ lldb/trunk/include/lldb/Host/msvc/Config.h Thu Sep 5 11:56:12 2013
@@ -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_
More information about the lldb-commits
mailing list