Checkpoint
This commit is contained in:
1 parent
f5ab51c477
commit
125ab4c171
136 files changed
+707
-615
No files matched your search
@@ -14,6 +14,10 @@ module Rscons
|
||||
# All Environments.
|
||||
attr_reader :environments
|
||||
|
||||
# @return [Environment]
|
||||
# The Environment that is currently executing a construction block.
|
||||
attr_accessor :open_environment
|
||||
|
||||
# Initialize class instance variables.
|
||||
def class_init
|
||||
@environments = []
|
||||
@@ -109,7 +113,10 @@ module Rscons
|
||||
@n_threads = Rscons.application.n_threads
|
||||
|
||||
if block_given?
|
||||
Environment.open_environment = self
|
||||
yield self
|
||||
Environment.open_environment = nil
|
||||
process
|
||||
end
|
||||
end
|
||||
|
||||
@@ -158,7 +165,10 @@ module Rscons
|
||||
env.instance_variable_set(:@n_threads, @n_threads)
|
||||
|
||||
if block_given?
|
||||
Environment.open_environment = env
|
||||
yield env
|
||||
Environment.open_environment = nil
|
||||
env.process
|
||||
end
|
||||
env
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user