configure: make cached results immediately available

otherwise test de-duplication between modules doesn't work.

Change-Id: I2c6222d853108df223758aa8907dc8d004efd87f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Oswald Buddenhagen 2017-12-05 18:37:36 +01:00
parent fd3423bfb8
commit ff1c8baf4a

View File

@ -1052,8 +1052,13 @@ defineTest(qtConfSaveResult) {
return()
keys = result $$eval($${1}.cache)
cont = "cache.$${2}._KEYS_ = $$keys"
for (k, keys): \
cache.$${2}._KEYS_ = $$keys
export(cache.$${2}._KEYS_)
for (k, keys) {
cont += "cache.$${2}.$${k} = $$val_escape($${1}.$${k})"
cache.$${2}.$${k} = $$eval($${1}.$${k})
export(cache.$${2}.$${k})
}
write_file($$QMAKE_CONFIG_CACHE, cont, append)|error()
}