Skip to content

Commit 97523ae

Browse files
committed
makefile: fix escaping problem with GDS_ALLOW_EMPTY
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 74c112e commit 97523ae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ endif
508508

509509
UNSET_VARS = for var in $(UNSET_VARIABLES_NAMES); do unset $$var; done
510510

511-
SUB_MAKE = $(MAKE) $(foreach V,$(COMMAND_LINE_ARGS), $(if $($V),$V=$(shell echo $($V) | sed 's/ /\\ /g'),$V='')) --no-print-directory DESIGN_CONFIG=$(DESIGN_CONFIG)
511+
SUB_MAKE = $(MAKE) $(foreach V,$(COMMAND_LINE_ARGS), $(if $($V),$V=$(shell echo "$($V)" | $(FLOW_HOME)/scripts/escape.sh),$V='')) --no-print-directory DESIGN_CONFIG=$(DESIGN_CONFIG)
512512
UNSET_AND_MAKE = @bash -c '$(UNSET_VARS); $(SUB_MAKE) $$@' --
513513

514514
# Separate dependency checking and doing a step. This can

flow/scripts/escape.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
sed -e 's/ /\\ /g' -e 's/(/\\(/g' -e 's/|/\\|/g' -e 's/)/\\)/g'

0 commit comments

Comments
 (0)