From 76af996df8f88e0d4d3ed0f70e7ce9edd12970c2 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 8 Jan 2014 22:12:52 +0000 Subject: [PATCH] Only check os version for POSIX_SPAWN_CLOEXEC_DEFAULT on desktop builds of LLDB. llvm-svn: 198800 --- lldb/source/Host/macosx/Host.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index c0a10c7..2c680c1 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -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) { -- 2.7.4