Adding tsan shared library in Android version will cause these undefined symbol errors:
- ld.lld: error: undefined symbol: fileno_unlocked
- ld.lld: error: undefined symbol: stdout
- ld.lld: error: undefined symbol: stderr
So do a separate CMake build that only builds tsan when minSdkVersion is above 23.
Tests: None
Bugs: https://github.com/android/ndk/issues/1041
Change-Id: Idb28c10d4d246867c7e364ff153acf12f6fe162e
I guess for anything not Android ANDROID_PLATFORM_LEVEL is undefined so this disables TSAN everywhere?