I'm using AS2.3 with cmake 3.6.3155560. I set
cppFlags to
"-fno-exceptions", "-fno-rtti" and
arguments to
"-DANDROID_STL=system". However I can see in build.ninja that AS still adds path to libsupc++.a to LINK_LIBRARIES what makes my *.so files 3x bigger.
I can get rid of it by explicitly setting arguments like "-DANDROID_STL=system", "-DCMAKE_CXX_STANDARD_LIBRARIES=-Lm", but I don't know if it is ok to do so, afaik supc++ is used for rtti and exceptions features that I don't use anyway (or am I wrong?). Idk why it is linked when it looks like it's not dependency. There is no linker errors and it look like everything works.
So am I missing something or it is bug and it shouldn't be linked when using system STL?
Thanks.