Fix resolving of C/C++ std libs by Eclipse IDE // Resolve #220

This commit is contained in:
Ivan Kravets
2015-05-28 00:19:55 +03:00
parent ca1df9462d
commit a9a9545b37
3 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,12 @@
Release History
===============
2.0.3 (2015-??-??)
------------------
* Fixed resolving of C/C++ std libs by Eclipse IDE
(`issue #220 <https://github.com/platformio/platformio/issues/220>`_)
2.0.2 (2015-05-27)
------------------

View File

@ -1,7 +1,7 @@
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
VERSION = (2, 0, 2)
VERSION = (2, 0, "3.dev0")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -426,10 +426,14 @@ def DumpIDEData(env):
data['includes'].append(env.subst(item[1]))
# includes from toolchain
for item in glob(env.subst(
join("$PIOPACKAGES_DIR", "$PIOPACKAGE_TOOLCHAIN",
"*", "include"))):
data['includes'].append(item)
toolchain_dir = env.subst(
join("$PIOPACKAGES_DIR", "$PIOPACKAGE_TOOLCHAIN"))
toolchain_incglobs = [
join(toolchain_dir, "*", "include"),
join(toolchain_dir, "lib", "gcc", "*", "*", "include")
]
for g in toolchain_incglobs:
data['includes'].extend(glob(g))
# global symbols
for item in env.get("CPPDEFINES", []):