Add TSan flags to download_build_install.py
Allows building with both tsan=1 and use_instrumented_libraries=1
BUG=313751
TBR=earthdok@chromium.org
Review URL: https://codereview.chromium.org/195763021
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8706cde40d3946ff824694fe9b5a3ca40c7379c8
diff --git a/download_build_install.py b/download_build_install.py
index eb569ff..170bd04 100755
--- a/download_build_install.py
+++ b/download_build_install.py
@@ -29,6 +29,10 @@
'-gline-tables-only -fPIC -w',
'linker_flags': '-fsanitize=memory -Wl,-z,origin -Wl,-R,XORIGIN/.'
},
+ 'tsan': {
+ 'compiler_flags': '-fsanitize=thread -gline-tables-only -fPIC -w',
+ 'linker_flags': '-fsanitize=thread -Wl,-z,origin -Wl,-R,XORIGIN/.'
+ },
}