diff options
author | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2016-11-22 09:41:18 +0100 |
---|---|---|
committer | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2016-11-22 09:41:18 +0100 |
commit | c0a6c866f50b37fb8c9043c082b5aa898cb9e630 (patch) | |
tree | 42ca840b196bb357ad8a95c2b965cc09a34181c5 /coreconf/config.gypi | |
parent | 57578654f451c68f09d27196828807457eb828e5 (diff) | |
download | nss-hg-c0a6c866f50b37fb8c9043c082b5aa898cb9e630.tar.gz |
Bug 1319361 - add msan builds, r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D89
Diffstat (limited to 'coreconf/config.gypi')
-rw-r--r-- | coreconf/config.gypi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/coreconf/config.gypi b/coreconf/config.gypi index 1a4a9c2c3..fe9b55329 100644 --- a/coreconf/config.gypi +++ b/coreconf/config.gypi @@ -93,6 +93,7 @@ 'ssl_enable_zlib%': 1, 'use_asan%': 0, 'use_ubsan%': 0, + 'use_msan%': 0, 'use_sancov%': 0, 'test_build%': 0, 'fuzz%': 0, @@ -327,6 +328,21 @@ 'LIBRARY_SEARCH_PATHS': ['/usr/lib <(ubsan_flags)'], }, }], + [ 'use_msan==1', { + 'variables': { + 'msan_flags': '<!(<(python) <(DEPTH)/coreconf/sanitizers.py msan)', + 'no_ldflags': '<!(<(python) <(DEPTH)/coreconf/sanitizers.py ld)', + }, + 'cflags': ['<@(msan_flags)'], + 'ldflags': ['<@(msan_flags)'], + 'ldflags!': ['<@(no_ldflags)'], + 'xcode_settings': { + 'OTHER_CFLAGS': ['<@(msan_flags)'], + 'OTHER_LDFLAGS!': ['<@(no_ldflags)'], + # See comment above. + 'LIBRARY_SEARCH_PATHS': ['/usr/lib <(msan_flags)'], + }, + }], [ 'use_sancov!=0', { 'variables': { 'sancov_flags': '<!(<(python) <(DEPTH)/coreconf/sanitizers.py sancov <(use_sancov))', |