Escape $ when building linux def files
This commit is contained in:
parent
1db9af1bf2
commit
558ca9b4a8
3
mk/rt.mk
3
mk/rt.mk
@ -169,10 +169,11 @@ $$(LIBUV_LIB_$(1)): $$(wildcard \
|
||||
|
||||
# These could go in rt.mk or rustllvm.mk, they're needed for both.
|
||||
|
||||
# This regexp has a single $, escaped twice
|
||||
%.linux.def: %.def.in $$(MKFILES)
|
||||
@$$(call E, def: $$@)
|
||||
$$(Q)echo "{" > $$@
|
||||
$$(Q)sed 's/.$$/&;/' $$< >> $$@
|
||||
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
|
||||
$$(Q)echo "};" >> $$@
|
||||
|
||||
%.darwin.def: %.def.in $$(MKFILES)
|
||||
|
Loading…
Reference in New Issue
Block a user