summaryrefslogtreecommitdiff
path: root/template/fake.rb.in
diff options
context:
space:
mode:
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