forked from platformio/platformio-core
Dump g++ macros for IDE
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user