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]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Debugging
|
||||||
|
- `zig build run` would run the process twice, one without, one with debugging
|
||||||
|
|
||||||
## [20.2.1]
|
## [20.2.1]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -48,10 +48,9 @@ class ZigExecConfigBuild(project: Project, factory: ConfigurationFactory): ZigEx
|
||||||
override suspend fun buildCommandLineArgs(debug: Boolean): List<String> {
|
override suspend fun buildCommandLineArgs(debug: Boolean): List<String> {
|
||||||
val result = ArrayList<String>()
|
val result = ArrayList<String>()
|
||||||
result.add("build")
|
result.add("build")
|
||||||
val steps = buildSteps.args
|
val steps = if (debug) {
|
||||||
if (debug) {
|
|
||||||
val truncatedSteps = ArrayList<String>()
|
val truncatedSteps = ArrayList<String>()
|
||||||
for (step in steps) {
|
for (step in buildSteps.args) {
|
||||||
if (step == "run")
|
if (step == "run")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -60,7 +59,8 @@ class ZigExecConfigBuild(project: Project, factory: ConfigurationFactory): ZigEx
|
||||||
|
|
||||||
truncatedSteps.add(step)
|
truncatedSteps.add(step)
|
||||||
}
|
}
|
||||||
}
|
truncatedSteps
|
||||||
|
} else buildSteps.args
|
||||||
result.addAll(steps)
|
result.addAll(steps)
|
||||||
result.addAll(coloredCliFlags(colored.value, debug))
|
result.addAll(coloredCliFlags(colored.value, debug))
|
||||||
result.addAll(extraArgs.args)
|
result.addAll(extraArgs.args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue