Bug 1333003 part 5 - Include ASan runtime dll in common.tests.zip. r?ted
MozReview-Commit-ID: AzPdxaWwJn4
--- a/python/mozbuild/mozbuild/action/test_archive.py
+++ b/python/mozbuild/mozbuild/action/test_archive.py
@@ -445,16 +445,26 @@ ARCHIVE_FILES = {
'base': 'build',
'pattern': 'automation.py',
'dest': 'xpcshell',
},
],
}
+if buildconfig.substs.get('MOZ_ASAN') and buildconfig.substs.get('CLANG_CL'):
+ asan_dll = {
+ 'source': buildconfig.topobjdir,
+ 'base': 'dist/bin',
+ 'pattern': os.path.basename(buildconfig.substs['MOZ_CLANG_RT_ASAN_LIB_PATH']),
+ 'dest': 'bin'
+ }
+ ARCHIVE_FILES['common'].append(asan_dll)
+
+
# "common" is our catch all archive and it ignores things from other archives.
# Verify nothing sneaks into ARCHIVE_FILES without a corresponding exclusion
# rule in the "common" archive.
for k, v in ARCHIVE_FILES.items():
# Skip mozharness because it isn't staged.
if k in ('common', 'mozharness'):
continue