mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
7439c06ab7
from version.h for cross-compiling. * template/fake.rb.in (RUBY_VERSION, RUBY_DESCRIPTION): use above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
15 lines
448 B
Ruby
15 lines
448 B
Ruby
class Object
|
|
CROSS_COMPILING = RUBY_PLATFORM
|
|
remove_const :RUBY_PLATFORM
|
|
remove_const :RUBY_VERSION
|
|
remove_const :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
|
|
RUBY_PLATFORM = "@arch@"
|
|
RUBY_VERSION = "@RUBY_PROGRAM_VERSION@"
|
|
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (@RUBY_RELEASE_DATE@) [#{RUBY_PLATFORM}]"
|
|
end
|
|
if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
|
|
class File
|
|
remove_const :ALT_SEPARATOR
|
|
ALT_SEPARATOR = "\\"
|
|
end
|
|
end
|