Author: tfiala Date: Fri Apr 8 13:58:07 2016 New Revision: 265829 URL: http://llvm.org/viewvc/llvm-project?rev=265829&view=rev Log: Fix #ifdef __APPLE__ code is the swig Python bindings
This code was getting evaluated unintentionally at binding generation time instead of binding file compilation time. Addresses: https://bugs.swift.org/browse/SR-1192 Modified: lldb/trunk/scripts/Python/python-typemaps.swig Modified: lldb/trunk/scripts/Python/python-typemaps.swig URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/python-typemaps.swig?rev=265829&r1=265828&r2=265829&view=diff ============================================================================== --- lldb/trunk/scripts/Python/python-typemaps.swig (original) +++ lldb/trunk/scripts/Python/python-typemaps.swig Fri Apr 8 13:58:07 2016 @@ -534,7 +534,7 @@ %typemap(out) FILE * { char mode[4] = {0}; -#ifdef __APPLE__ +%#ifdef __APPLE__ int i = 0; if ($1) { @@ -547,7 +547,7 @@ else // if (flags & __SRW) mode[i++] = 'a'; } -#endif +%#endif using namespace lldb_private; File file($1, false); PythonFile py_file(file, mode); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits