diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-02-25 13:23:28 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-02-25 13:24:39 -0800 |
commit | 2ce6bc61e876f4e7918952a565488d737ce647f6 (patch) | |
tree | f8e59fff0e82a66fc1bfc79e7b8e14bc17cd59e3 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 03d49046b9ca6ed3a33c21f87c45d525a1e320a7 (diff) | |
download | llvm-2ce6bc61e876f4e7918952a565488d737ce647f6.zip llvm-2ce6bc61e876f4e7918952a565488d737ce647f6.tar.gz llvm-2ce6bc61e876f4e7918952a565488d737ce647f6.tar.bz2 |
[lldb] Fix check for TARGET_OS_IPHONE
Instead of checking whether TARGET_OS_IPHONE is set to 1, the current
code just check the existence of TARGET_OS_IPHONE, which either always
succeeds or always fails, depending on whether you have
TargetConditionals.h included.
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index a50803d..8676371 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -84,6 +84,10 @@ #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/ScopedPrinter.h" +#if defined(__APPLE__) +#include <TargetConditionals.h> +#endif + using namespace lldb; using namespace lldb_private; @@ -434,7 +438,7 @@ void CommandInterpreter::Initialize() { if (cmd_obj_sp) { alias_arguments_vector_sp = std::make_shared<OptionArgVector>(); #if defined(__APPLE__) -#if defined(TARGET_OS_IPHONE) +#if TARGET_OS_IPHONE AddAlias("r", cmd_obj_sp, "--"); AddAlias("run", cmd_obj_sp, "--"); #else |