Skip to content

Commit e2aeb7d

Browse files
committed
Use $(SRC_FILE) and $(OS_DEST_FILE)
NMake combines VPATH and stem with a backslash. The resulting source name is embedded verbatim, backslash included, into the generated file using the `#line` pragma (e.g., "src\gc.rb"). This causes the warning "C4129: Unrecognized character escape sequence".
1 parent 401932c commit e2aeb7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,11 +1353,11 @@ preludes: {$(VPATH)}miniprelude.c
13531353

13541354
{$(srcdir)}.rb.rbbin:
13551355
$(ECHO) making $@
1356-
$(Q) $(MINIRUBY) $(tooldir)/mk_rbbin.rb $< > $@
1356+
$(Q) $(MINIRUBY) $(tooldir)/mk_rbbin.rb $(SRC_FILE) > $(OS_DEST_FILE)
13571357

13581358
{$(srcdir)}.rb.rbinc:
13591359
$(ECHO) making $@
1360-
$(Q) $(BASERUBY) $(tooldir)/mk_builtin_loader.rb $<
1360+
$(Q) $(BASERUBY) $(tooldir)/mk_builtin_loader.rb $(SRC_FILE)
13611361

13621362
$(BUILTIN_BINARY:yes=built)in_binary.rbbin: $(PREP) $(BUILTIN_RB_SRCS) $(srcdir)/template/builtin_binary.rbbin.tmpl
13631363
$(Q) $(MINIRUBY) $(tooldir)/generic_erb.rb -o $@ \

0 commit comments

Comments
 (0)