Dump g++ macros for IDE

This commit is contained in:
Ivan Kravets
2018-03-24 12:45:00 +02:00
parent ec9a2b02ea
commit 622e4033c1

View File

@ -68,7 +68,9 @@ def _get_gcc_defines(env):
sysenv = environ.copy() sysenv = environ.copy()
sysenv['PATH'] = str(env['ENV']['PATH']) sysenv['PATH'] = str(env['ENV']['PATH'])
result = util.exec_command( result = util.exec_command(
"echo | %s -dM -E -" % env.subst("$CC"), env=sysenv, shell=True) "echo | %s -dM -E -x c++ -" % env.subst("$CC"),
env=sysenv,
shell=True)
except OSError: except OSError:
return items return items
if result['returncode'] != 0: if result['returncode'] != 0: