[Lldb-commits] [lldb] r198800 - Only check os version for POSIX_SPAWN_CLOEXEC_DEFAULT on desktop builds of LLDB.

Greg Clayton gclayton at apple.com
Wed Jan 8 14:12:52 PST 2014


Author: gclayton
Date: Wed Jan  8 16:12:52 2014
New Revision: 198800

URL: http://llvm.org/viewvc/llvm-project?rev=198800&view=rev
Log:
Only check os version for POSIX_SPAWN_CLOEXEC_DEFAULT on desktop builds of LLDB.


Modified:
    lldb/trunk/source/Host/macosx/Host.mm

Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=198800&r1=198799&r2=198800&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Wed Jan  8 16:12:52 2014
@@ -1335,7 +1335,7 @@ GetPosixspawnFlags (ProcessLaunchInfo &l
         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)
     {





More information about the lldb-commits mailing list