Fixed a bug with Python headers on 64-bit Debian.

This commit is contained in:
Krystian Bacławski
2016-03-05 20:12:47 +01:00
parent 38eb1339df
commit 7af666c26c
2 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -454,7 +454,7 @@ def make(name, target=None, **makevars):
def require_header(header, lang, msg='', symbol=None, value=None):
debug('require_header "%s"', header)
cmd = {'c': '{cc}', 'c++': '{cxx}'}[lang]
cmd = {'c': os.environ['CC'], 'c++': os.environ['CXX']}[lang]
cmd = fill_in(cmd).split()
proc = subprocess.Popen(cmd + ['-fsyntax-only', '-x', lang, '-'],
stdin=subprocess.PIPE,