fix: zig build run debugging double run
This commit is contained in:
parent
2e6db5ccd3
commit
009c5fa5ed
2 changed files with 9 additions and 4 deletions
|
@ -17,6 +17,11 @@ Changelog structure reference:
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Debugging
|
||||
- `zig build run` would run the process twice, one without, one with debugging
|
||||
|
||||
## [20.2.1]
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -48,10 +48,9 @@ class ZigExecConfigBuild(project: Project, factory: ConfigurationFactory): ZigEx
|
|||
override suspend fun buildCommandLineArgs(debug: Boolean): List<String> {
|
||||
val result = ArrayList<String>()
|
||||
result.add("build")
|
||||
val steps = buildSteps.args
|
||||
if (debug) {
|
||||
val steps = if (debug) {
|
||||
val truncatedSteps = ArrayList<String>()
|
||||
for (step in steps) {
|
||||
for (step in buildSteps.args) {
|
||||
if (step == "run")
|
||||
continue
|
||||
|
||||
|
@ -60,7 +59,8 @@ class ZigExecConfigBuild(project: Project, factory: ConfigurationFactory): ZigEx
|
|||
|
||||
truncatedSteps.add(step)
|
||||
}
|
||||
}
|
||||
truncatedSteps
|
||||
} else buildSteps.args
|
||||
result.addAll(steps)
|
||||
result.addAll(coloredCliFlags(colored.value, debug))
|
||||
result.addAll(extraArgs.args)
|
||||
|
|
Loading…
Add table
Reference in a new issue