C++: add an option to enable RTTI support
C++: add an option to enable RTTI support

Closes https://github.com/espressif/esp-idf/issues/1684

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf