Fixed spurious project's "Problems" for PlatformIO IDE for VSCode when ARM mbed framework is used

This commit is contained in:
Ivan Kravets
2018-12-12 01:28:37 +02:00
parent afdfaeec68
commit f539513376
2 changed files with 9 additions and 1 deletions

View File

@ -4,6 +4,11 @@ Release Notes
PlatformIO 3.0 PlatformIO 3.0
-------------- --------------
3.6.3 (2018-12-??)
~~~~~~~~~~~~~~~~~~
* Fixed spurious project's "Problems" for `PlatformIO IDE for VSCode <http://docs.platformio.org/page/ide/vscode.html>`__ when ARM mbed framework is used
3.6.2 (2018-11-29) 3.6.2 (2018-11-29)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

View File

@ -54,13 +54,16 @@
% cc_stds = STD_RE.findall(cc_flags) % cc_stds = STD_RE.findall(cc_flags)
% cxx_stds = STD_RE.findall(cxx_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: % if cc_stds:
"cStandard": "c{{ cc_stds[-1] }}", "cStandard": "c{{ cc_stds[-1] }}",
% end % end
% if cxx_stds: % if cxx_stds:
"cppStandard": "c++{{ cxx_stds[-1] }}", "cppStandard": "c++{{ cxx_stds[-1] }}",
% end % end
"compilerPath": "{{! _escape(cc_path) }} {{! _escape(STD_RE.sub("", cc_flags)) }}" "compilerPath": "{{! _escape(cc_path) }} {{! _escape(cc_m_flags) }}"
} }
] ]
} }