When OptionValueFileSpec is given a filename starting
with ~, we need to realpath it. Fixes the case where
settings set target.expr-prefix ~/lldb.prefix.header
wouldn't read this prefix header file. <rdar://problem/12475676>
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@165704 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/OptionValueFileSpec.cpp b/source/Interpreter/OptionValueFileSpec.cpp
index 62b80bc..944f034 100644
--- a/source/Interpreter/OptionValueFileSpec.cpp
+++ b/source/Interpreter/OptionValueFileSpec.cpp
@@ -93,7 +93,7 @@
if (value_cstr && value_cstr[0])
{
m_value_was_set = true;
- m_current_value.SetFile(value_cstr, false);
+ m_current_value.SetFile(value_cstr, value_cstr[0] == '~');
}
else
{