Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e77c32ea authored by Yabin Cui's avatar Yabin Cui
Browse files

Link tsan shared library when tsan is used.

Bug: http://b/25392375
Test: build a unit test with tsan.
Change-Id: Ib2d937f2e311f6670cf341a983740f0ca464f166
parent 96929d69
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -137,6 +137,8 @@ ifneq ($(filter thread,$(my_sanitize)),)
    else
        $(error $(LOCAL_PATH): $(LOCAL_MODULE): TSAN cannot be used for 32-bit modules.)
    endif
  else
    my_shared_libraries += $(TSAN_RUNTIME_LIBRARY)
  endif
endif