Revision: 3659 http://trac.macosforge.org/projects/ruby/changeset/3659 Author: eloy.de.enige@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"
participants (1)
-
source_changes@macosforge.org