[macruby-changes] [3553] MacRuby/trunk/bin/rubyc
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 16 13:34:53 PST 2010
Revision: 3553
http://trac.macosforge.org/projects/ruby/changeset/3553
Author: lsansonetti at apple.com
Date: 2010-02-16 13:34:51 -0800 (Tue, 16 Feb 2010)
Log Message:
-----------
fix ARCHS env code (temporarily before this moves to ruby_deploy)
Modified Paths:
--------------
MacRuby/trunk/bin/rubyc
Modified: MacRuby/trunk/bin/rubyc
===================================================================
--- MacRuby/trunk/bin/rubyc 2010-02-16 11:54:05 UTC (rev 3552)
+++ MacRuby/trunk/bin/rubyc 2010-02-16 21:34:51 UTC (rev 3553)
@@ -42,10 +42,12 @@
end
@archs.uniq!
if @archs.empty?
- if not ENV['ARCHS'].empty?
+ arch = ENV['ARCHS']
+ arch = arch.strip if arch
+ if arch and arch.size > 0
# Copy Xcode way of doing it:
# Use intersection of ARCHS and VALID_ARCHS
- @archs = ENV['ARCHS'].split & VALID_ARCHS
+ @archs = arch.split & VALID_ARCHS
else
@archs << RUBY_ARCH
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100216/a00c64a2/attachment-0001.html>
More information about the macruby-changes
mailing list