Better integration of PlatformIO Builder with PlatformIO IDE Linter

This commit is contained in:
Ivan Kravets
2016-01-30 19:14:11 +02:00
parent 1f95b6be25
commit b44c75a3c1
4 changed files with 11 additions and 3 deletions

View File

@ -4,6 +4,11 @@ Release Notes
PlatformIO 2.0
--------------
2.8.3 (2016-??-??)
~~~~~~~~~~~~~~~~~~
* Better integration of PlatformIO Builder with PlatformIO IDE Linter
2.8.2 (2016-01-29)
~~~~~~~~~~~~~~~~~~

View File

@ -14,7 +14,7 @@
import sys
VERSION = (2, 8, 2)
VERSION = (2, 8, "3.dev0")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -214,6 +214,9 @@ def DumpIDEData(env):
return {
"defines": get_defines(),
"includes": get_includes(),
"cc_flags": env.subst("$SHCFLAGS $SHCCFLAGS $CPPFLAGS $_CPPDEFFLAGS"),
"cxx_flags": env.subst(
"$SHCXXFLAGS $SHCCFLAGS $CPPFLAGS $_CPPDEFFLAGS"),
"cxx_path": where_is_program(
env.subst("$CXX"), env.subst("${ENV['PATH']}"))
}

View File

@ -1,7 +1,7 @@
{
"execPath": "{{ cxx_path.replace("\\", "/") }}",
"gccDefaultCFlags": "-Wall -Wno-cpp -fsyntax-only -D{{ ' -D'.join(defines) }}",
"gccDefaultCppFlags": "-Wall -Wno-cpp -fsyntax-only -D{{ ' -D'.join(defines) }}",
"gccDefaultCFlags": "-fsyntax-only {{ cc_flags.replace(' -MMD ', ' ') }}",
"gccDefaultCppFlags": "-fsyntax-only {{ cxx_flags.replace(' -MMD ', ' ') }}",
"gccErrorLimit": 15,
"gccIncludePaths": "{{ ','.join(includes).replace("\\", "/") }}",
"gccSuppressWarnings": false