Android O MR1 IOT Release Smart Display r3 (OIM3.180907.022)
Enable libcxxabi for Windows
Bug: http://b/91353691
- Use Win32 threads. MinGW pthreads throws an error when building
libcxx since it's pthread_mutex_initializer is not constant (needs a
cast).
- Disable visibility annotations for libcxx and libcxxabi since we are
only going to support these as static libraries.
- Use SjLj exceptions for 32-bit. libgcc_eh implements SjLj exception
model for 32-bit.
- Do not build cxa_thread_atexit.cpp. Upstream doesn't either.
- Do not build stdlib_new_delete.cpp in libcxxabi to avoid
multiple-definition errors against definitions in libcxx/src/new.cpp.
This works on Linux and Android where the functions have 'weak' linkage
and are discarded by the linker.
Test: Build and test Windows binaries under Wine.
Change-Id: I93c307f4e502bed425b00816e53640960bb93047
1 file changed