Using std::exception makes packaging fail

I tried to package my project that uses std::exception, and it failed with:



warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc


I looked into the build system, and could not find where I should put the /EHsc switch. It compiles fine in the editor. What am I doing wrong? Is there a UE4 equivalent to std::exception?

It seems like you have to rebuild the engine in order to enable exceptions. answerhub