Skip to content

Commit

Permalink
cache variables based on their types
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Apr 4, 2018
1 parent 5057607 commit 0a6b2a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SCRAM/GMake/Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ endef
define AdjustFlags
$(strip \
$(foreach f,$3,\
$(if $(subst undefined,,$(origin ADJUST_$1_$f_COMP$4_FILE$5)),$(ADJUST_$1_$f_COMP$4_FILE$5),\
$(eval ADJUST_$1_$f_COMP$4_FILE$5:=\
$(if $(subst undefined,,$(origin ADJUST_$1_$f_COMP$4_FILE$5_TYPE_$(subst $(space),_,$2))),$(ADJUST_$1_$f_COMP$4_FILE$5_TYPE_$(subst $(space),_,$2)),\
$(eval ADJUST_$1_$f_COMP$4_FILE$5_TYPE_$(subst $(space),_,$2):=\
$(strip \
$(USER_PRE_$f) \
$(filter-out \
Expand All @@ -256,7 +256,7 @@ $(strip \
$(strip $(foreach t,$2 $($1_CLASS),$($t_$f)) $($1_LOC_FLAGS_$f) $($(2)_LOC_FLAGS_$f) $(USER_$f))\
)\
)\
$(ADJUST_$1_$f_COMP$4_FILE$5)\
$(ADJUST_$1_$f_COMP$4_FILE$5_TYPE_$(subst $(space),_,$2))\
)\
)\
)
Expand Down

0 comments on commit 0a6b2a1

Please sign in to comment.