See microsoft/vscode-cmake-tools#1188
The script uses podman, but you can switch to docker if need be by modifying the script source code and replacing the podman call with a docker call
./container/build-image.sh
That container image is based off:
- a simple debian 10 slim image
- where an upstream cmake 3.20.3 is compiled/installed from source
- the arm64 foreign arch is added and a clang c++ simple dev environment is installed
./container/test-container.sh project
- Spawn vscode
- Use remote-container to connect to the running d10-clang-aarch64-linux-gnu:1.0 container
- Copy the VSIX from microsoft/vscode-cmake-tools#1188 (comment) in the host ./project directory
- Ctrl+Shift+P Extensions Install from VSIX ... and install the copied VSIX iwithin the container
- Install any necessary plugin within the container: C/C++, CMake
- Select the clang-aarch64 build kit
- Ctrl+Shift+P Cmake: Configure
Then the bug occurs, despite the toolchain file setting up a clangaarch64 build of the hello world project, it setups intellisense for clang-x64.