Skip to content

Commit 383fe1e

Browse files
committed
8374642: EscapeHash macro fails with GNU make 4.3 and 4.4
Reviewed-by: tbell, shade
1 parent dd20e91 commit 383fe1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make/common/Utils.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ EscapeDollar = $(subst $$,\$$,$(subst \$$,$$,$(strip $1)))
114114

115115
################################################################################
116116
# This macro works just like EscapeDollar above, but for #.
117-
EscapeHash = $(subst \#,\\\#,$(subst \\\#,\#,$(strip $1)))
117+
EscapeHash = $(subst $(HASH),\$(HASH),$(subst \$(HASH),$(HASH),$(strip $1)))
118118

119119
################################################################################
120120
# This macro translates $ into $$ to protect the string from make itself.

0 commit comments

Comments
 (0)