forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
03d49046b9
commit
2ce6bc61e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue