Skip to content

Commit 558ca9b

Browse files
committed
Escape $ when building linux def files
1 parent 1db9af1 commit 558ca9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mk/rt.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@ $$(LIBUV_LIB_$(1)): $$(wildcard \
169169

170170
# These could go in rt.mk or rustllvm.mk, they're needed for both.
171171

172+
# This regexp has a single $, escaped twice
172173
%.linux.def: %.def.in $$(MKFILES)
173174
@$$(call E, def: $$@)
174175
$$(Q)echo "{" > $$@
175-
$$(Q)sed 's/.$$/&;/' $$< >> $$@
176+
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
176177
$$(Q)echo "};" >> $$@
177178

178179
%.darwin.def: %.def.in $$(MKFILES)

0 commit comments

Comments
 (0)