diff options
author | Zachary Turner <zturner@google.com> | 2014-10-20 17:46:43 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-10-20 17:46:43 +0000 |
commit | 10687b0ea5f45dffc800f5d38cb73269aecc9f45 (patch) | |
tree | 96ea5e429ec5be2355cb38172ffec327e7b86375 /lldb/source/Host/windows/HostInfoWindows.cpp | |
parent | 7550b114b11bc868c36be493eda43fe821c1edea (diff) | |
download | bcm5719-llvm-10687b0ea5f45dffc800f5d38cb73269aecc9f45.tar.gz bcm5719-llvm-10687b0ea5f45dffc800f5d38cb73269aecc9f45.zip |
Remove LLDB_DEFAULT_SHELL #define, and determine this at runtime.
Differential Revision: http://reviews.llvm.org/D5805
Reviewed by: Greg Clayton
llvm-svn: 220217
Diffstat (limited to 'lldb/source/Host/windows/HostInfoWindows.cpp')
-rw-r--r-- | lldb/source/Host/windows/HostInfoWindows.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Host/windows/HostInfoWindows.cpp b/lldb/source/Host/windows/HostInfoWindows.cpp index 8b2a6600e41..c0366dd47bc 100644 --- a/lldb/source/Host/windows/HostInfoWindows.cpp +++ b/lldb/source/Host/windows/HostInfoWindows.cpp @@ -96,6 +96,12 @@ HostInfoWindows::GetProgramFileSpec() return m_program_filespec; } +FileSpec +HostInfoWindows::GetDefaultShell() +{ + return FileSpec(::getenv("ComSpec"), false); +} + bool HostInfoWindows::ComputePythonDirectory(FileSpec &file_spec) { |