NMake needs caret to escape a hash sign

This commit is contained in:
Nobuyoshi Nakada 2025-08-12 18:19:09 +09:00
parent 6b2d9ed2a5
commit 401932c18f
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
3 changed files with 4 additions and 1 deletions

View file

@ -1539,7 +1539,7 @@ prepare-gems: $(HAVE_BASERUBY:yes=update-gems) $(HAVE_BASERUBY:yes=extract-gems)
extract-gems: $(HAVE_BASERUBY:yes=update-gems) $(HAVE_BASERUBY:yes=outdate-bundled-gems)
update-gems: $(HAVE_BASERUBY:yes=outdate-bundled-gems)
split_option = -F"\s+|\#.*"
split_option = -F"\s+|$(HASH_SIGN).*"
update-gems$(sequential): PHONY
$(ECHO) Downloading bundled gem files...

View file

@ -289,6 +289,8 @@ ABI_VERSION_HDR = $(hdrdir)/ruby/internal/abi.h
CAT_DEPEND = sed -e 's/{\$$([^(){}]*)[^{}]*}//g' -e /AUTOGENERATED/q
HASH_SIGN = \#
.SUFFIXES: .inc .h .c .y .i .$(ASMEXT) .$(DTRACE_EXT)
all:

View file

@ -464,6 +464,7 @@ ASMEXT = asm
INSTALLED_LIST= .installed.list
HASH_SIGN = ^#
SRC_FILE = $(<:\=/)
OS_SRC_FILE = $(<:/=\)
DEST_FILE = $(@:\=/)