Skip to content

Commit 9baaa4f

Browse files
committed
build: set cmake.build-type = Debug in devcontainer by default
1 parent f1b471f commit 9baaa4f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// "forwardPorts": [],
1010
// "postCreateCommand": "pip3 install --user -r requirements.txt",
1111

12+
"containerEnv": {
13+
"BUILD_DEBUG": "1"
14+
},
15+
1216
"customizations": {
1317
"vscode": {
1418
"settings": {

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ wheel.packages = ["src/dave"]
116116
cmake.build-type = "Release"
117117
cmake.define = { BUILD_SHARED_LIBS = "OFF" }
118118

119+
# Default to debug builds in devcontainer (which sets this env variable globally)
120+
[[tool.scikit-build.overrides]]
121+
if.env.BUILD_DEBUG = true
122+
cmake.build-type = "Debug"
123+
119124

120125
[tool.cibuildwheel]
121126
skip = [

0 commit comments

Comments
 (0)