Permalink
Browse files

reload_prims task fixed

  • Loading branch information...
1 parent faa6a31 commit 3ad3f5a22a952301973fa806e53afd4e0b4755a4 @BloodyD BloodyD committed Feb 27, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 rakelib/maglev_stone.rb
View
9 rakelib/maglev_stone.rb
@@ -154,7 +154,14 @@ def reload_prims
start unless running?
puts "Loading Kernel for #{@name}. This may take a few seconds..."
input_file("#{ML}/src/smalltalk/ruby/allprims.topaz", false)
- system("#{ML}/bin/maglev-ruby --stone #{@name} #{ML}/src/kernel/extensions.rb")
+
+ stonename = ENV["STONENAME"]
+ begin
+ ENV["STONENAME"] = ""
+ system("#{ML}/bin/maglev-ruby", "--stone", @name, "#{ML}/src/kernel/extensions.rb")
+ ensure
+ ENV["STONENAME"] = stonename
+ end
end
def prims_loaded?(name='maglev')

0 comments on commit 3ad3f5a

Please sign in to comment.