0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-18998 Fix a build failure when building TSan support without a symbolizer

Previously, the build would fail with an UnboundLocalError when appending to
tsan_options.
This commit is contained in:
Kamran Khan 2015-06-16 15:38:35 -04:00
parent 6bf2bfe665
commit dd72c45ad1

View File

@ -1817,6 +1817,7 @@ def doConfigure(myenv):
else:
llvm_symbolizer = myenv.WhereIs(llvm_symbolizer)
tsan_options = ""
if llvm_symbolizer:
myenv['ENV']['ASAN_SYMBOLIZER_PATH'] = llvm_symbolizer
myenv['ENV']['LSAN_SYMBOLIZER_PATH'] = llvm_symbolizer