diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-13 10:37:33 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-13 13:41:11 -0800 |
commit | 4e26cf2cfb2b140a33ec236153cb2f23b5c44127 (patch) | |
tree | 466e768fef375dd038474f91abc4eb255dca93ec /lldb/source/Interpreter/CommandObjectScript.cpp | |
parent | 9cb7a1be2a430a50fb5644b3f48d4a1544034fb9 (diff) | |
download | llvm-4e26cf2cfb2b140a33ec236153cb2f23b5c44127.zip llvm-4e26cf2cfb2b140a33ec236153cb2f23b5c44127.tar.gz llvm-4e26cf2cfb2b140a33ec236153cb2f23b5c44127.tar.bz2 |
[lldb/CMake] Rename LLDB_DISABLE_PYTHON to LLDB_ENABLE_PYTHON
This matches the naming scheme used by LLVM and all the other optional
dependencies in LLDB.
Differential revision: https://reviews.llvm.org/D71482
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectScript.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObjectScript.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Interpreter/CommandObjectScript.cpp b/lldb/source/Interpreter/CommandObjectScript.cpp index d9ee30c..fe365a5 100644 --- a/lldb/source/Interpreter/CommandObjectScript.cpp +++ b/lldb/source/Interpreter/CommandObjectScript.cpp @@ -32,13 +32,7 @@ CommandObjectScript::~CommandObjectScript() {} bool CommandObjectScript::DoExecute(llvm::StringRef command, CommandReturnObject &result) { -#ifdef LLDB_DISABLE_PYTHON - // if we ever support languages other than Python this simple #ifdef won't - // work - result.AppendError("your copy of LLDB does not support scripting."); - result.SetStatus(eReturnStatusFailed); - return false; -#else +#if LLDB_ENABLE_PYTHON if (m_interpreter.GetDebugger().GetScriptLanguage() == lldb::eScriptLanguageNone) { result.AppendError( @@ -72,5 +66,11 @@ bool CommandObjectScript::DoExecute(llvm::StringRef command, result.SetStatus(eReturnStatusFailed); return result.Succeeded(); +#else + // if we ever support languages other than Python this simple #ifdef won't + // work + result.AppendError("your copy of LLDB does not support scripting."); + result.SetStatus(eReturnStatusFailed); + return false; #endif } |