-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop build for Windows doesn't actually disable exceptions #1117
Comments
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
According to the MSVC docs, there are other Either way, we need to properly make sure that the generated binaries actually are devoid of exception handling. I think I missed that step last time, but I don't remember. |
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
Apparently the actual way to do this is to use '-', not 'c'. Fixes TerryCavanagh#1117.
So I found this post covering exceptions on MSVC. If I compile the example snippet in the post with If I try it with
...and still produces warning C4530. So no, removing |
I mean // ehsc.test.cpp
#include <cstdlib>
#include <vector>
void sink(std::vector<int> const& s);
int main(int argc, char** argv) {
std::vector<int> vec; vec.reserve(argc);
for (int i = 0; i < argc; ++i) {
vec.push_back(atoi(argv[argc]));
}
sink(vec);
}
|
So we should have been using |
|
As I established above,
I figured. I'll look into this more. This might be what we were looking for in the first place.
We already do this. VVVVVV/desktop_version/CMakeLists.txt Lines 359 to 361 in 91e1447
|
|
Yes, we do. The |
The CMake code that is supposed to disable exceptions for MSVC build instead enables fully conforming exception handling. The correct approach is to justnot have any
/EH
flags at all, but if you want to be explicit about it you can add/EHs-
instead.VVVVVV/desktop_version/CMakeLists.txt
Lines 290 to 292 in 8dd5414
The text was updated successfully, but these errors were encountered: