Avoid running configure operation twice - close #156

This commit is contained in:
josh committed 2022-03-11 21:17:07 -05:00
1 parent e3ea429253
commit b932380b3b
3 files changed
+25 -8

No files matched your search

+11 -8
View File
@@ -207,15 +207,18 @@ module Rscons
#
# @return [void]
def configure
co = ConfigureOp.new(@script)
begin
@script.configure(co)
rescue RsconsError => e
co.close(false)
raise e
unless @_configured
@_configured = true
co = ConfigureOp.new(@script)
begin
@script.configure(co)
rescue RsconsError => e
co.close(false)
raise e
end
Cache.instance["configuration_data"]["enabled_variants"] = @enabled_variants
co.close(true)
end
Cache.instance["configuration_data"]["enabled_variants"] = @enabled_variants
co.close(true)
end
# Remove installed files.