Skip to content

Commit ab7a5ee

Browse files
authored
Merge pull request #714 from Pinata-Consulting/blocks-fix
blocks: changed environment variables leaked through to sub-make invocation
2 parents b3cf456 + 866265b commit ab7a5ee

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

flow/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,15 @@ export WRAPPED_GDSOAS = $(foreach lef,$(notdir $(WRAP_LEFS)),$(OBJECTS_DIR)/$(le
295295
define GENERATE_ABSTRACT_RULE
296296
# Single rule, two targets, hence the "&:", syntax
297297
$(1) $(2) &: $(3)
298-
$(MAKE) "DESIGN_CONFIG=$(3)" generate_abstract
298+
# Make sure environment variables modified in this Makefile do not leak into the sub-build
299+
bash -c " \
300+
unset BLOCKS && \
301+
unset ADDITIONAL_LEFS && \
302+
unset ADDITIONAL_GDS && \
303+
unset ADDITIONAL_LIBS && \
304+
unset DONT_USE_SC_LIB && \
305+
unset LIB_FILES && \
306+
$(MAKE) \"DESIGN_CONFIG=$(3)\" generate_abstract"
299307
endef
300308

301309
# Targets to harden Blocks in case of hierarchical flow is triggered

0 commit comments

Comments
 (0)