use the same cache for all branches for appveyor

This commit is contained in:
Rhody Lugo 2017-11-27 09:43:00 -04:00
parent 48ca47b4ea
commit 388249c386
22 changed files with 97 additions and 49 deletions

View file

@ -1418,6 +1418,7 @@ def split_lib(self, libname):
if base != cur_base and len(list) > max_src:
if num > 0:
lib = env.Library(libname + str(num), list)
env.NoCache(lib)
lib_list.append(lib)
list = []
num = num + 1
@ -1425,6 +1426,7 @@ def split_lib(self, libname):
list.append(f)
lib = env.Library(libname + str(num), list)
env.NoCache(lib)
lib_list.append(lib)
if len(lib_list) > 0:
@ -1432,11 +1434,14 @@ def split_lib(self, libname):
if os.name == 'posix' and sys.platform == 'msys':
env.Replace(ARFLAGS=['rcsT'])
lib = env.Library(libname + "_collated", lib_list)
env.NoCache(lib)
lib_list = [lib]
lib_base = []
env.add_source_files(lib_base, "*.cpp")
lib_list.insert(0, env.Library(libname, lib_base))
lib = env.Library(libname, lib_base)
env.NoCache(lib)
lib_list.insert(0, lib)
env.Prepend(LIBS=lib_list)