mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Project Generator: fixed a VSCode C/C++'s "Cannot find" warning when CPPPATH folder does not exist
This commit is contained in:
@ -13,6 +13,11 @@ PlatformIO 4.0
|
|||||||
PlatformIO 3.0
|
PlatformIO 3.0
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
3.6.7 (2019-??-??)
|
||||||
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Project Generator: fixed a VSCode C/C++'s "Cannot find" warning when CPPPATH folder does not exist
|
||||||
|
|
||||||
3.6.6 (2019-03-29)
|
3.6.6 (2019-03-29)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
% import platform
|
% import platform
|
||||||
% from os.path import commonprefix, dirname
|
% from os.path import commonprefix, dirname, isdir
|
||||||
%
|
%
|
||||||
% systype = platform.system().lower()
|
% systype = platform.system().lower()
|
||||||
%
|
%
|
||||||
@ -15,7 +15,7 @@
|
|||||||
%
|
%
|
||||||
% cleaned_includes = []
|
% cleaned_includes = []
|
||||||
% for include in includes:
|
% for include in includes:
|
||||||
% if "toolchain-" not in dirname(commonprefix([include, cc_path])):
|
% if "toolchain-" not in dirname(commonprefix([include, cc_path])) and isdir(include):
|
||||||
% cleaned_includes.append(include)
|
% cleaned_includes.append(include)
|
||||||
% end
|
% end
|
||||||
% end
|
% end
|
||||||
@ -65,7 +65,7 @@
|
|||||||
% if cxx_stds:
|
% if cxx_stds:
|
||||||
"cppStandard": "c++{{ cxx_stds[-1] }}",
|
"cppStandard": "c++{{ cxx_stds[-1] }}",
|
||||||
% end
|
% end
|
||||||
"compilerPath": "{{! _escape(cc_path) }} {{! _escape(cc_m_flags) }}"
|
"compilerPath": "\"{{! _escape(cc_path) }}\" {{! _escape(cc_m_flags) }}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Reference in New Issue
Block a user