Skip to content

Commit

Permalink
openroad.bzl: Improve wrapping env vars with spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <[email protected]>
  • Loading branch information
lpawelcz committed Mar 18, 2024
1 parent 880535a commit 7522aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def wrap_args(args):
for arg in args:
splt = arg.split("=", 1)
if (len(splt) == 2):
if (" " in splt[1] and "DESIGN_CONFIG" != splt[0]):
wrapped_args.append(splt[0] + "='" + splt[1] + "'")
if (" " in splt[1]):
wrapped_args.append(splt[0] + "=\\\'" + splt[1] + "\\\'")
else:
wrapped_args.append(arg)
else:
Expand Down

0 comments on commit 7522aac

Please sign in to comment.