Don't output null.o during configure

This commit is contained in:
Scott Graham 2015-08-26 19:51:15 -07:00
parent 30d1d7b8da
commit b8f4ad12c0

View File

@ -325,7 +325,8 @@ else:
cflags += ['-O2', '-DNDEBUG']
try:
proc = subprocess.Popen(
[CXX, '-fdiagnostics-color', '-c', '-x', 'c++', '/dev/null'],
[CXX, '-fdiagnostics-color', '-c', '-x', 'c++', '/dev/null',
'-o', '/dev/null'],
stdout=open(os.devnull, 'wb'), stderr=subprocess.STDOUT)
if proc.wait() == 0:
cflags += ['-fdiagnostics-color']