Skip to content

Commit 85c0dd7

Browse files
committed
Make sure that && always has whitespace around it.
1 parent cd8805a commit 85c0dd7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build/ab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ def generate(xs):
526526

527527

528528
def filenameof(x):
529+
x = targetof(x)
529530
xs = filenamesof(x.outs)
530531
assert (
531532
len(xs) == 1
@@ -611,7 +612,7 @@ def emit_rule(self, ins, outs, cmds=[], label=None):
611612
emit("build", *fouts, ":rule", *fins)
612613
emit(
613614
" command=",
614-
"&&".join([s.strip() for s in rule]).replace("$", "$$"),
615+
" && ".join([s.strip() for s in rule]).replace("$", "$$"),
615616
)
616617
if label:
617618
emit(" description=", label)

0 commit comments

Comments
 (0)