-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:alpine-3.18 | ||
|
||
RUN \ | ||
apk add --update --no-cache \ | ||
clang16 \ | ||
libc++-dev \ | ||
cmake \ | ||
ninja \ | ||
git \ | ||
gdb \ | ||
linux-headers \ | ||
py3-pip \ | ||
&& pip install conan | ||
|
||
# install gdb c++ support | ||
RUN \ | ||
git clone --depth 1 https://github.com/koutheir/libcxx-pretty-printers.git /usr/share/libcxx-pretty-printers \ | ||
&& echo "set print pretty on" > /home/vscode/.gdbinit \ | ||
&& echo "set print object on" > /home/vscode/.gdbinit \ | ||
&& echo "# See: https://github.com/koutheir/libcxx-pretty-printers" > /home/vscode/.gdbinit \ | ||
&& echo "python" > /home/vscode/.gdbinit \ | ||
&& echo "import sys" >>/home/vscode/.gdbinit \ | ||
&& echo "sys.path.insert(0, '/usr/share/libcxx-pretty-printers/src')" >>/home/vscode/.gdbinit \ | ||
&& echo "from libcxx.v1.printers import register_libcxx_printers" >>/home/vscode/.gdbinit \ | ||
&& echo "register_libcxx_printers (None)" >>/home/vscode/.gdbinit \ | ||
&& echo "end" >>/home/vscode/.gdbinit | ||
|
||
ENV \ | ||
CC=/usr/bin/clang \ | ||
CXX=/usr/bin/clang++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "clang16", | ||
"build": { | ||
"dockerfile": "./clang16.Dockerfile", | ||
"context": "." | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cmake-tools" | ||
] | ||
} | ||
}, | ||
"remoteUser": "vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters