Skip to content

Commit b8c94f9

Browse files
authored
Add c++20 kernel (#77)
1 parent 238c7a8 commit b8c94f9

File tree

6 files changed

+46
-2
lines changed

6 files changed

+46
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ configure_kernel("share/jupyter/kernels/xcpp")
154154
configure_kernel("share/jupyter/kernels/xcpp11")
155155
configure_kernel("share/jupyter/kernels/xcpp14")
156156
configure_kernel("share/jupyter/kernels/xcpp17")
157+
configure_kernel("share/jupyter/kernels/xcpp20")
157158

158159
# Source files
159160
# ============

share/jupyter/kernels/xcpp/kernel.json.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"display_name": "cpp 17 (xcpp)",
2+
"display_name": "cpp 20 (xcpp)",
33
"env": {
44
"PATH":"@XEUS_CPP_PATH@",
55
"LD_LIBRARY_PATH":"@XEUS_CPP_LD_LIBRARY_PATH@"
@@ -10,7 +10,7 @@
1010
"{connection_file}",
1111
"-resource-dir", "@XEUS_CPP_RESOURCE_DIR@",
1212
"-I", "@CMAKE_INSTALL_PREFIX@/include",
13-
"-std=c++17"@XEUS_CPP_OMP@
13+
"-std=c++20"@XEUS_CPP_OMP@
1414
],
1515
"language": "cpp",
1616
"metadata": {"debugger": false
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"display_name": "C++20 (xcpp)",
3+
"env": {
4+
"PATH":"@XEUS_CPP_PATH@",
5+
"LD_LIBRARY_PATH":"@XEUS_CPP_LD_LIBRARY_PATH@"
6+
},
7+
"argv": [
8+
"@XEUS_CPP_KERNELSPEC_PATH@xcpp",
9+
"-f",
10+
"{connection_file}",
11+
"-resource-dir", "@XEUS_CPP_RESOURCE_DIR@",
12+
"-I", "@CMAKE_INSTALL_PREFIX@/include",
13+
"-std=c++20"@XEUS_CPP_OMP@
14+
],
15+
"language": "cpp",
16+
"metadata": {"debugger": false
17+
}
18+
}
1.48 KB
Loading
3.04 KB
Loading
Lines changed: 25 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)