0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-28 16:24:56 +01:00

SERVER-14605 Make SYSLIBDEPS dependency order stable across SCons invocations

This commit is contained in:
Gabriel Russell 2017-01-31 21:42:31 +00:00
parent e3a32afe3b
commit 29ee4e817e

View File

@ -126,7 +126,7 @@ def __get_syslibdeps(node):
cached_var_name = syslibdeps_env_var + '_cached'
if not hasattr(node.attributes, cached_var_name):
syslibdeps = node.get_env().Flatten(node.get_env().get(syslibdeps_env_var, []))
for lib in __get_libdeps(node):
for lib in sorted_by_str(__get_libdeps(node)):
for syslib in node.get_env().Flatten(lib.get_env().get(syslibdeps_env_var, [])):
if syslib:
if type(syslib) in (str, unicode) and syslib.startswith(missing_syslibdep):