toolchain: fix the C++ exception workaround for new toolchains that don't have such hook
toolchain: fix the C++ exception workaround for new toolchains that don't have such hook

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