Can /EHa exception option be used with c++20 module?

109 Views Asked by At

I know that the documentation says that "To consume the Microsoft Standard Library modules, compile your program with /EHsc and /MD options." https://learn.microsoft.com/en-us/cpp/cpp/modules-cpp?view=msvc-170

But I desperately hope that /EHa can be used and wish, in a naive way, that there is something that can be done that isn't changing the /EHa option.

Because I work on an application with millions of code lines with hundreds of other persons. We use the /EHa to catch uncatched exception and generate a log with the callstack. I don't think that changing the compiler options is an option. But I think using modules will help us with our headers trouble in c++/CLI.

Ask in others words, maybe /EHa is compatible with code compiled with /EHsc but not the other way around?

0

There are 0 best solutions below