commit | e77c32ea9713141a52a5e7c4d1a419cae8082d28 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Oct 19 14:33:58 2017 -0700 |
committer | Yabin Cui <yabinc@google.com> | Thu Oct 19 14:33:58 2017 -0700 |
tree | d39bc8490f8ea35746f912f56f2f53d4e73228f1 | |
parent | 96929d691e386c5971b48332987802ce8eb6a8c5 [diff] |
Link tsan shared library when tsan is used. Bug: http://b/25392375 Test: build a unit test with tsan. Change-Id: Ib2d937f2e311f6670cf341a983740f0ca464f166
diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk index e01fbbf..f5b45db 100644 --- a/core/config_sanitizers.mk +++ b/core/config_sanitizers.mk
@@ -137,6 +137,8 @@ else $(error $(LOCAL_PATH): $(LOCAL_MODULE): TSAN cannot be used for 32-bit modules.) endif + else + my_shared_libraries += $(TSAN_RUNTIME_LIBRARY) endif endif