internal/rosa/make: optionally format value as is
Some checks failed
Test / Flake checks (push) Has been cancelled
Test / Hakurei (push) Has been cancelled
Test / Create distribution (push) Has been cancelled
Test / Sandbox (push) Has been cancelled
Test / Sandbox (race detector) (push) Has been cancelled
Test / Hakurei (race detector) (push) Has been cancelled
Test / ShareFS (push) Has been cancelled
Some checks failed
Test / Flake checks (push) Has been cancelled
Test / Hakurei (push) Has been cancelled
Test / Create distribution (push) Has been cancelled
Test / Sandbox (push) Has been cancelled
Test / Sandbox (race detector) (push) Has been cancelled
Test / Hakurei (race detector) (push) Has been cancelled
Test / ShareFS (push) Has been cancelled
This enables correct formatting for awkward configure scripts. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -171,7 +171,10 @@ func (attr *MakeHelper) script(name string) string {
|
|||||||
s = "-" + s
|
s = "-" + s
|
||||||
}
|
}
|
||||||
if v[1] != "" {
|
if v[1] != "" {
|
||||||
s += "=" + v[1]
|
if v[0] != "" {
|
||||||
|
s += "="
|
||||||
|
}
|
||||||
|
s += v[1]
|
||||||
}
|
}
|
||||||
if !yield(s) {
|
if !yield(s) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user