support false :use value for configure operations - close #93

This commit is contained in:
josh committed 2019-02-28 21:09:56 -05:00
1 parent f58744d31f
commit 06b9c98ed0
3 files changed
+32 -9

No files matched your search

+13 -9
View File
@@ -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.