This project is closed and read-only.
Bug #3299
closedrevision.h rule in common.mk is broken for MSVC
Description
=begin
Commit 27107 http://redmine.ruby-lang.org/repositories/revision/ruby-18?rev=27107 broke revision.h rule when trying to compile with MSVC:
'{' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : warning U4004: too many rules for target './revision.h'
cl -nologo -MD -O2b2xty- -DRUBY_EXPORT -I. -I. -I./missing -D_CRT_SE
CURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -c -Tcversion.c
version.c
That doesn't stop compilation, but revision.h is left blank and no revision information is embedded in the executable.
Attached is a patch which fixes the problem with multiple rules and moves the sed expressions to a file so that the command runs correctly on both Windows and Posix systems (currently the sed statement will not work on Windows due to improperly escaped characters).
=end
Files