provide Environment construction option to use stored configuration settings - close #78
This commit is contained in:
1 parent
fa5aa51daa
commit
eaac473f44
6 files changed
+79
-6
No files matched your search
@@ -64,7 +64,7 @@ module Rscons
|
||||
# If a block is given, the Environment object is yielded to the block and
|
||||
# when the block returns, the {#process} method is automatically called.
|
||||
def initialize(options = {})
|
||||
super()
|
||||
super(options)
|
||||
@id = self.class.get_id
|
||||
self.class.register(self)
|
||||
@threaded_commands = Set.new
|
||||
@@ -83,7 +83,6 @@ module Rscons
|
||||
end
|
||||
@echo = options[:echo] || :short
|
||||
@build_root = "#{Cache.instance.configuration_data["build_dir"]}/e.#{@id}"
|
||||
load_configuration_data!
|
||||
|
||||
if block_given?
|
||||
yield self
|
||||
|
||||
Reference in new issue
Block a user