Skip to content

Commit fdd4ca1

Browse files
committed
variables: handle append semantics better
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 80df43a commit fdd4ca1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

flow/scripts/defaults.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ def main():
138138
"LIB_FILES",
139139
"GDS_FILES"
140140
)
141-
for key in env_canonical:
142-
if key in append_semantics:
143-
variables[key] = " ".join(
144-
([variables.get[key]] if key in variables else [])
145-
+ [env_canonical[key]]
146-
)
147141

148142
# the platform overrides the defaults from variables.yaml, but need
149143
# OBJECTS_DIR. make handles such dependencies differently, it has
@@ -249,7 +243,7 @@ def main():
249243
value = str(value).replace(" ", "__SPACE__")
250244
append = key in append_semantics
251245
if sys.argv[1] == "make":
252-
print(f'export {key}{"" if append else "?"}={value}')
246+
print(f'export {key}{"+" if append else "?"}={value}')
253247
elif sys.argv[1] == "bash":
254248
print(
255249
f'export {key}="'

0 commit comments

Comments
 (0)