diff --git a/HISTORY.rst b/HISTORY.rst index 120c45cb..4fb214d8 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,11 @@ Release Notes PlatformIO 3.0 -------------- +3.6.3 (2018-12-??) +~~~~~~~~~~~~~~~~~~ + +* Fixed spurious project's "Problems" for `PlatformIO IDE for VSCode `__ when ARM mbed framework is used + 3.6.2 (2018-11-29) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl b/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl index c90ca667..5f0343de 100644 --- a/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl +++ b/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl @@ -54,13 +54,16 @@ % cc_stds = STD_RE.findall(cc_flags) % cxx_stds = STD_RE.findall(cxx_flags) % +% # pass only architecture specific flags +% cc_m_flags = " ".join([f.strip() for f in cc_flags.split(" ") if f.strip().startswith("-m")]) +% % if cc_stds: "cStandard": "c{{ cc_stds[-1] }}", % end % if cxx_stds: "cppStandard": "c++{{ cxx_stds[-1] }}", % end - "compilerPath": "{{! _escape(cc_path) }} {{! _escape(STD_RE.sub("", cc_flags)) }}" + "compilerPath": "{{! _escape(cc_path) }} {{! _escape(cc_m_flags) }}" } ] } \ No newline at end of file