support false :use value for configure operations - close #93
This commit is contained in:
1 parent
f58744d31f
commit
06b9c98ed0
3 files changed
+32
-9
No files matched your search
@@ -360,15 +360,19 @@ module Rscons
|
||||
# @return [Hash]
|
||||
# Configuration Hash for storing vars.
|
||||
def store_common(options)
|
||||
usename =
|
||||
if options[:use]
|
||||
options[:use].to_s
|
||||
else
|
||||
"_default_"
|
||||
end
|
||||
cache = Cache.instance
|
||||
cache["configuration_data"]["vars"] ||= {}
|
||||
cache["configuration_data"]["vars"][usename] ||= {}
|
||||
if options[:use] == false
|
||||
{}
|
||||
else
|
||||
usename =
|
||||
if options[:use]
|
||||
options[:use].to_s
|
||||
else
|
||||
"_default_"
|
||||
end
|
||||
cache = Cache.instance
|
||||
cache["configuration_data"]["vars"] ||= {}
|
||||
cache["configuration_data"]["vars"][usename] ||= {}
|
||||
end
|
||||
end
|
||||
|
||||
# Perform processing common to several configure checks.
|
||||
|
||||
Reference in new issue
Block a user