summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Platform.cpp
diff options
context:
space:
mode:
authorColin Riley <colin@codeplay.com>2013-11-26 15:10:46 +0000
committerColin Riley <colin@codeplay.com>2013-11-26 15:10:46 +0000
commit909bb7a3f42e7c57d9fad0798d4caac059ff5dd9 (patch)
treeb4505966ef6d51f782ae12d6d5248070a447a3fa /lldb/source/Target/Platform.cpp
parent119f3073173cf6ae02d632d21e3926fcdac853fe (diff)
downloadbcm5719-llvm-909bb7a3f42e7c57d9fad0798d4caac059ff5dd9.tar.gz
bcm5719-llvm-909bb7a3f42e7c57d9fad0798d4caac059ff5dd9.zip
Fix MSVC build
Added _WIN32 guards to new platform features. Using correct SetErrorStringWithFormat within Host when LLDB_DISABLE_POSIX is defined. Also fixed an if defined block. llvm-svn: 195766
Diffstat (limited to 'lldb/source/Target/Platform.cpp')
-rw-r--r--lldb/source/Target/Platform.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp
index 1bf9f10855f..9c6501f3894 100644
--- a/lldb/source/Target/Platform.cpp
+++ b/lldb/source/Target/Platform.cpp
@@ -671,12 +671,17 @@ Platform::SetWorkingDirectory (const ConstString &path)
{
if (IsHost())
{
+#ifdef _WIN32
+ // Not implemented on Windows
+ return false;
+#else
if (path)
{
if (chdir(path.GetCString()) == 0)
return true;
}
return false;
+#endif
}
else
{
OpenPOWER on IntegriCloud