Move the target architecture map out of the Meson branch so Cargo C/C++ IntelliSense for FFI and build-script code can reuse the same mapping instead of duplicating it.
AI-Generated: Uses GitHub Copilot Signed-off-by: Enguerrand de Ribaucourt <[email protected]> --- scripts/lib/devtool/ide_plugins/ide_code.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/lib/devtool/ide_plugins/ide_code.py b/scripts/lib/devtool/ide_plugins/ide_code.py index 85f286335f..95ef472ed4 100644 --- a/scripts/lib/devtool/ide_plugins/ide_code.py +++ b/scripts/lib/devtool/ide_plugins/ide_code.py @@ -352,16 +352,16 @@ class IdeVSCode(IdeBase): properties_dict = { "name": modified_recipe.recipe_id_pretty, } + arch_map = { + 'aarch64': 'arm64', 'x86_64': 'x64', 'arm': 'arm', + 'i686': 'x86', 'i586': 'x86', 'riscv64': 'x64', 'riscv32': 'x86', + } if modified_recipe.build_tool is BuildTool.CMAKE: properties_dict["configurationProvider"] = "ms-vscode.cmake-tools" elif modified_recipe.build_tool is BuildTool.MESON: # configurationProvider = "mesonbuild.mesonbuild" does not work because # the cross-compiler is not in PATH and omits the sysroot by default. compiler_type = 'clang' if modified_recipe.toolchain == 'clang' else 'gcc' - arch_map = { - 'aarch64': 'arm64', 'x86_64': 'x64', 'arm': 'arm', - 'i686': 'x86', 'i586': 'x86', 'riscv64': 'x64', 'riscv32': 'x86', - } intelli_arch = arch_map.get(modified_recipe.target_arch, 'x64') properties_dict["compilerPath"] = os.path.join( modified_recipe.staging_bindir_toolchain, -- 2.53.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#248644): https://lists.openembedded.org/g/openembedded-core/message/248644 Mute This Topic: https://lists.openembedded.org/mt/121938787/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
