This isn't 100% compatible with MSVC, but it's close enough. MSVC's /EH
flag doesn't really control exceptions so much as how to clean up after
an exception is thrown. The upshot is that cl.exe /EHs- will compile
try, throw, and catch statements with a warning, but clang-cl will
reject such constructs with a hard error. We can't compile such EH
constructs anyway, but this may matter to consumers of the AST.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm with a few comments
lib/Driver/Tools.cpp | ||
---|---|---|
4409 ↗ | (On Diff #10906) | nit: "the whether". Also, do you think we should break this into a helper function? And I suppose we should forward the /EH flag to msvc when invoking the fallback. |
Comment Actions
thanks!
lib/Driver/Tools.cpp | ||
---|---|---|
4409 ↗ | (On Diff #10906) |
fixed
Sure. I'll go back and split out /MD & co in a followup.
Oh, right, added that. |