[macruby-changes] [3659] MacRuby/trunk/rakelib

source_changes at macosforge.org source_changes at macosforge.org
Sun Feb 28 06:53:11 PST 2010


Revision: 3659
          http://trac.macosforge.org/projects/ruby/changeset/3659
Author:   eloy.de.enige at gmail.com
Date:     2010-02-28 06:53:09 -0800 (Sun, 28 Feb 2010)
Log Message:
-----------
Add a compile_stdlib option for the builder, which can be set to false to skip compilation.

But always AOT compile rbconfig.rb. And remove stdlib:touch.

Modified Paths:
--------------
    MacRuby/trunk/rakelib/builder/options.rb
    MacRuby/trunk/rakelib/builder.rake

Modified: MacRuby/trunk/rakelib/builder/options.rb
===================================================================
--- MacRuby/trunk/rakelib/builder/options.rb	2010-02-28 06:57:29 UTC (rev 3658)
+++ MacRuby/trunk/rakelib/builder/options.rb	2010-02-28 14:53:09 UTC (rev 3659)
@@ -46,6 +46,7 @@
 ENABLE_DEBUG_LOGGING    = b.option('enable_debug_logging', true) { |x| x == 'true' }
 UNEXPORTED_SYMBOLS_LIST = b.option('unexported_symbols_list', nil)
 SIMULTANEOUS_JOBS       = b.option('jobs', 1) { |x| x.to_i }
+COMPILE_STDLIB          = b.option('compile_stdlib', true) { |x| x == 'true' }
 
 # Everything below this comment should *not* be modified.
 

Modified: MacRuby/trunk/rakelib/builder.rake
===================================================================
--- MacRuby/trunk/rakelib/builder.rake	2010-02-28 06:57:29 UTC (rev 3658)
+++ MacRuby/trunk/rakelib/builder.rake	2010-02-28 14:53:09 UTC (rev 3659)
@@ -142,7 +142,7 @@
   desc "AOT compile the stdlib"
   task :build => [:miniruby, 'macruby:dylib'] do
     archf = ARCHS.map { |x| "--arch #{x}" }.join(' ')
-    commands = AOT_STDLIB.map do |pattern|
+    commands = (COMPILE_STDLIB ? AOT_STDLIB : %w{ rbconfig.rb }).map do |pattern|
       Dir.glob(pattern).map do |path|
         out = File.join(File.dirname(path), File.basename(path, '.rb') + '.rbo')
         if !File.exist?(out) or File.mtime(path) > File.mtime(out) or File.mtime('./miniruby') > File.mtime(out)
@@ -152,12 +152,6 @@
     end.flatten.compact
     Builder.parallel_execute(commands)
   end
-
-  desc "Touch .rbo files to ignore their build"
-  task :touch do
-    files = ["*.rbo", "lib/**/*.rbo"]
-    files.map { |pat| Dir.glob(pat) }.flatten.each { |p| sh "/usr/bin/touch #{p}" }
-  end
 end
 
 desc "Same as extensions"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100228/ce030eec/attachment.html>


More information about the macruby-changes mailing list