Only check os version for POSIX_SPAWN_CLOEXEC_DEFAULT on desktop builds of LLDB.

llvm-svn: 198800
This commit is contained in:
Greg Clayton 2014-01-08 22:12:52 +00:00
parent 1c704b4a2e
commit 76af996df8
1 changed files with 1 additions and 1 deletions

View File

@ -1335,7 +1335,7 @@ GetPosixspawnFlags (ProcessLaunchInfo &launch_info)
flags |= POSIX_SPAWN_SETPGROUP;
#ifdef POSIX_SPAWN_CLOEXEC_DEFAULT
#if defined (__APPLE__)
#if defined (__APPLE__) && (defined (__x86_64__) || defined (__i386__))
static LazyBool g_use_close_on_exec_flag = eLazyBoolCalculate;
if (g_use_close_on_exec_flag == eLazyBoolCalculate)
{