aboutsummaryrefslogtreecommitdiffstats
path: root/template/fake.rb.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-11 02:39:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-11 02:39:05 +0000
commitc7f86bb5f604f7d58e68839ebacb3c031f8b865b (patch)
tree1b1c0e30d29dd8e4378a0ca452ace5240bf1033f /template/fake.rb.in
parent1e96a30c9d410c215e7a628bcc8e1081d36926d8 (diff)
downloadruby-c7f86bb5f604f7d58e68839ebacb3c031f8b865b.tar.gz
* template/fake.rb.in (CROSS_COMPILING): get rid of NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/fake.rb.in')
-rwxr-xr-xtemplate/fake.rb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 5bbb3353bf..7bfa0aef01 100755
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -6,7 +6,7 @@ ruby="${RUBY-$baseruby}"
"}" || "exit" "$?"
ruby=ruby
class Object
- remove_const :CROSS_COMPILING
+ remove_const :CROSS_COMPILING if defined?(CROSS_COMPILING)
CROSS_COMPILING = RUBY_PLATFORM
remove_const :RUBY_PLATFORM
remove_const :RUBY_VERSION