[llvm-commits] [llvm] r105894 - /llvm/trunk/test/Scripts/macho-dump.bat

Daniel Dunbar daniel at zuster.org
Sat Jun 12 10:05:28 PDT 2010


Author: ddunbar
Date: Sat Jun 12 12:05:28 2010
New Revision: 105894

URL: http://llvm.org/viewvc/llvm-project?rev=105894&view=rev
Log:
tests: Run macho-dump with binary unbuffered streams on Windows, I can't find a Python 2.6 way to change stdin to binary.

Modified:
    llvm/trunk/test/Scripts/macho-dump.bat

Modified: llvm/trunk/test/Scripts/macho-dump.bat
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Scripts/macho-dump.bat?rev=105894&r1=105893&r2=105894&view=diff
==============================================================================
--- llvm/trunk/test/Scripts/macho-dump.bat (original)
+++ llvm/trunk/test/Scripts/macho-dump.bat Sat Jun 12 12:05:28 2010
@@ -1,7 +1,7 @@
 @echo off
 
- at rem The -t here is just to avoid infinite looping if %PYTHON_EXECUTABLE% isn't set
- at rem for some reason.
+ at rem We need to set -u to treat stdin as binary. Python 3 has support for doing
+ at rem this in code, but I haven't found a way to do this in 2.6 yet.
 
-%PYTHON_EXECUTABLE% -t %LLVM_SRC_ROOT%\test\Scripts\macho-dump %1 %2 %3 %4 %5 %6 %7 %8 %9
+%PYTHON_EXECUTABLE% -u %LLVM_SRC_ROOT%\test\Scripts\macho-dump %1 %2 %3 %4 %5 %6 %7 %8 %9
 





More information about the llvm-commits mailing list