Allow using CXX='distcc g++' with ./waf configure.

This commit is contained in:
Vedran Miletić
2012-11-13 14:24:27 +01:00
parent 8ccfb685f1
commit 621e6ca2a6

View File

@@ -341,9 +341,9 @@ def configure(conf):
elif sys.platform == 'cygwin':
env.append_value("LINKFLAGS", "-Wl,--enable-auto-import")
cxx, = env['CXX']
p = subprocess.Popen([cxx, '-print-file-name=libstdc++.so'], stdout=subprocess.PIPE)
cxx = env['CXX']
cxx_check_libstdcxx = cxx + ['stdout=subprocess.PIPE']
p = subprocess.Popen(cxx_check_libstdcxx, stdout=subprocess.PIPE)
libstdcxx_location = os.path.dirname(p.stdout.read().strip())
p.wait()
if libstdcxx_location: