https://github.com/edgomez/cmake-tools-1188-env
Environment showing how to reproduce cmake vscode-tools issue #1188
https://github.com/edgomez/cmake-tools-1188-env
cmake-toolchain docker podman vscode vsix
Last synced: 3 months ago
JSON representation
Environment showing how to reproduce cmake vscode-tools issue #1188
- Host: GitHub
- URL: https://github.com/edgomez/cmake-tools-1188-env
- Owner: edgomez
- Created: 2021-06-11T22:26:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-11T22:41:38.000Z (almost 4 years ago)
- Last Synced: 2025-01-11T15:13:30.970Z (4 months ago)
- Topics: cmake-toolchain, docker, podman, vscode, vsix
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Environment to reproduce vscode cmake-tools issue #1188
See https://github.com/microsoft/vscode-cmake-tools/issues/1188
## Step1: Build the container
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## Step2: Running the container
./container/test-container.sh project
## Step3: Use the project within the container in vscode
1. Spawn vscode
2. Use remote-container to connect to the running
d10-clang-aarch64-linux-gnu:1.0 container
3. Copy the VSIX from https://github.com/microsoft/vscode-cmake-tools/issues/1188#issuecomment-857443445
in the host ./project directory
4. Ctrl+Shift+P Extensions Install from VSIX ...
and install the copied VSIX iwithin the container
5. Install any necessary plugin within the container: C/C++, CMake
6. Select the clang-aarch64 build kit
7. Ctrl+Shift+P Cmake: ConfigureThen the bug occurs, despite the toolchain file setting up a clangaarch64 build of
the hello world project, it setups intellisense for clang-x64.