diff --git a/platformio/builder/tools/pioide.py b/platformio/builder/tools/pioide.py index 833d9b84..4093712e 100644 --- a/platformio/builder/tools/pioide.py +++ b/platformio/builder/tools/pioide.py @@ -68,7 +68,9 @@ def _get_gcc_defines(env): sysenv = environ.copy() sysenv['PATH'] = str(env['ENV']['PATH']) 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: return items if result['returncode'] != 0: