aboutsummaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-12 11:11:41 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-12 11:11:41 +0200
commit12785240ca92bb623e1f836b4c81238d875198cd (patch)
treef753312ff416e5c21575eae9ff0069b1cfa30bdc /.vscode
parentb9ff63ee60c1316573190eaf757a12b8d1b83f9c (diff)
downloadteachos-12785240ca92bb623e1f836b4c81238d875198cd.tar.xz
teachos-12785240ca92bb623e1f836b4c81238d875198cd.zip
build: switch to ninja multi-config generator
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json17
-rw-r--r--.vscode/tasks.json7
2 files changed, 19 insertions, 5 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index b9d0a1e..cba84f4 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -5,7 +5,7 @@
"name": "(gdb) QEMU",
"type": "cppdbg",
"request": "launch",
- "program": "${workspaceFolder}/build/Debug/bin/_kernel",
+ "program": "${workspaceFolder}/build/bin/${input:build_type}/_kernel",
"MIMode": "gdb",
"miDebuggerServerAddress": "localhost:1234",
"cwd": "${workspaceFolder}",
@@ -18,7 +18,7 @@
},
{
"description": "Load file",
- "text": "-file-exec-and-symbols ${workspaceFolder}/build/Debug/bin/_kernel"
+ "text": "-file-exec-and-symbols ${workspaceFolder}/build/bin/${input:build_type}/_kernel"
},
{
"description": "Set breakpoint on _start",
@@ -26,5 +26,18 @@
}
]
}
+ ],
+ "inputs": [
+ {
+ "id": "build_type",
+ "type": "pickString",
+ "default": "Debug",
+ "description": "The build type to boot",
+ "options": [
+ "Debug",
+ "Release",
+ "RelWithDebInfo"
+ ]
+ }
]
} \ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 74cbc54..29529a3 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -11,7 +11,7 @@
"-m",
"32M",
"-cdrom",
- "${workspaceFolder}/build/${input:build_type}/teachos.iso"
+ "${workspaceFolder}/build/teachos-${input:build_type}.iso"
],
"isBackground": true,
"presentation": {
@@ -28,7 +28,7 @@
"-m",
"32M",
"-cdrom",
- "${workspaceFolder}/build/${input:build_type}/teachos.iso"
+ "${workspaceFolder}/build/teachos-${input:build_type}.iso"
],
"presentation": {
"reveal": "always"
@@ -45,7 +45,8 @@
"description": "The build type to boot",
"options": [
"Debug",
- "Release"
+ "Release",
+ "RelWithDebInfo"
]
}
]