mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
devtool: ide: define compilerPath for meson projects
The compile_commands.json file output by meson uses the compiler as if present in the $PATH. However, when using an IDE, the $PATH used by bitbake is not there. The vscode-cpptools now allows to define the compilerPath in addition to replace the one from compile_commands.json. (From OE-Core rev: d9f5c27c8beee07c7cbbed11f5d45058e7315846) Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
82312b2fc1
commit
e2f8ed72dd
@@ -194,6 +194,7 @@ class IdeVSCode(IdeBase):
|
||||
properties_dict["configurationProvider"] = "ms-vscode.cmake-tools"
|
||||
elif modified_recipe.build_tool is BuildTool.MESON:
|
||||
properties_dict["configurationProvider"] = "mesonbuild.mesonbuild"
|
||||
properties_dict["compilerPath"] = os.path.join(modified_recipe.staging_bindir_toolchain, modified_recipe.cxx.split()[0])
|
||||
else: # no C/C++ build
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user