[llvm-commits] [zorg] r146269 - /zorg/trunk/lnt/lnt/testing/util/compilers.py

Daniel Dunbar daniel at zuster.org
Fri Dec 9 11:16:55 PST 2011


Author: ddunbar
Date: Fri Dec  9 13:16:54 2011
New Revision: 146269

URL: http://llvm.org/viewvc/llvm-project?rev=146269&view=rev
Log:
lnt.testing.util.compilers: Fix to not leave stray compiler outputs around.

Modified:
    zorg/trunk/lnt/lnt/testing/util/compilers.py

Modified: zorg/trunk/lnt/lnt/testing/util/compilers.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/testing/util/compilers.py?rev=146269&r1=146268&r2=146269&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/testing/util/compilers.py (original)
+++ zorg/trunk/lnt/lnt/testing/util/compilers.py Fri Dec  9 13:16:54 2011
@@ -131,7 +131,7 @@
 
     # Determine the binary tool versions for the assembler and the linker, as
     # found by the compiler.
-    cc_as_version = capture([cc, "-c", '-Wa,-v'] + cc_flags +
+    cc_as_version = capture([cc, "-c", '-Wa,-v', '-o', '/dev/null'] + cc_flags +
                             ['-x', 'assembler', '/dev/null'],
                             include_stderr=True).strip()
 
@@ -141,7 +141,8 @@
     tf = open(name, 'w')
     print >>tf, "int main() { return 0; }"
     tf.close()
-    cc_ld_version = capture([cc, "-Wl,-v"] + cc_flags + [tf.name],
+    cc_ld_version = capture(([cc, "-Wl,-v", '-o', '/dev/null'] + 
+                             cc_flags + [tf.name]),
                             include_stderr=True).strip()
     rm_f(tf.name)
 





More information about the llvm-commits mailing list