[macruby-changes] [848] MacRuby/trunk/Rakefile

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 7 12:15:12 PST 2009


Revision: 848
          http://trac.macosforge.org/projects/ruby/changeset/848
Author:   lsansonetti at apple.com
Date:     2009-03-07 12:15:12 -0800 (Sat, 07 Mar 2009)
Log Message:
-----------
check if RUBYOPT is defined and warn the user

Modified Paths:
--------------
    MacRuby/trunk/Rakefile

Modified: MacRuby/trunk/Rakefile
===================================================================
--- MacRuby/trunk/Rakefile	2009-03-07 05:26:09 UTC (rev 847)
+++ MacRuby/trunk/Rakefile	2009-03-07 20:15:12 UTC (rev 848)
@@ -51,6 +51,10 @@
   $stderr.puts "Warning: your appear to use a PowerPC machine. MacRuby's PPC support is very basic and may be dropped in a near future. Supported architectures are Intel 32-bit and 64-bit (i386 and x86_64)." 
 end
 
+if ENV['RUBYOPT']
+  $stderr.puts "Warning: It seems that the RUBYOPT environment variable is defined. Defining RUBYOPT while building MacRuby can cause problems. Unless you really know what you're doing, we strongly recommend to undefine the variable when building MacRuby."
+end
+
 version_h = File.read('version.h')
 NEW_RUBY_VERSION = version_h.scan(/#\s*define\s+RUBY_VERSION\s+\"([^"]+)\"/)[0][0]
 MACRUBY_VERSION = version_h.scan(/#\s*define\s+MACRUBY_VERSION\s+(.*)/)[0][0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090307/a29f6e1e/attachment.html>


More information about the macruby-changes mailing list