Bug 1333003 part 5 - Include ASan runtime dll in common.tests.zip. r?ted draft
authorTing-Yu Chou <janus926@gmail.com>
Fri, 10 Mar 2017 12:09:17 +0800
changeset 503560 b4d9764de3c62319122c6cc2cf453193d18cd18b
parent 503419 322cac70f8e0b1a6667cc0810a883aef77e9444c
child 503561 15a744912867f4e91dab2b1b5ae67056bf54381a
push id50622
push userbmo:janus926@gmail.com
push dateThu, 23 Mar 2017 10:00:07 +0000
reviewersted
bugs1333003
milestone55.0a1
Bug 1333003 part 5 - Include ASan runtime dll in common.tests.zip. r?ted MozReview-Commit-ID: AzPdxaWwJn4
python/mozbuild/mozbuild/action/test_archive.py
--- 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