You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building in Visual Studio 2019 in Debug mode I get this error:
Only happens in Debug build; Release, MinSizeRel, RelWithDebInfo build fine
Expected Behavior
The project should build fine
Current Behavior
The project did not build :(
Possible Solution
There's this: https://stackoverflow.com/a/44416270
But having /O2 for a debug build seems incorrect. Also had an issue with CLion+Linux where Debug build skipped breakpoints, which can be proof of incorrect configuration.
Steps to Reproduce
git clone https://github.com/metacall/core.git
install VS 2019
mkdir build
cd build
cmake ..
Hit Local Windows Debugger here
Context (Environment)
I was trying to build the project
The text was updated successfully, but these errors were encountered:
This needs to be documented. Basically.. MetaCall build system depends on this flag:
cmake -DCMAKE_BUILD_TYPE=Debug ..
The default option is Release. MSVC allows you to change after generation time the build type but metacall depends on the cmake option.. so each time you want to change the build type you need to set it up and re-generate the msvc files.
Has this solved your problem? Can we close the issue?
@viferga it makes sense. But this solution seems incorrect as an IDE user would expect the configurations to work fine out of the box. Apart from Visual Studio, I had an issue in Clion where breakpoints were skipped. Now that I added the flag you mentioned, it works fine for me. So if this hack is intended, we can close this issue and I can add this to the documnentation
🐛 Bug Report
When building in Visual Studio 2019 in
Debug
mode I get this error:Only happens in
Debug
build;Release
,MinSizeRel
,RelWithDebInfo
build fineExpected Behavior
The project should build fine
Current Behavior
The project did not build :(
Possible Solution
There's this: https://stackoverflow.com/a/44416270
But having
/O2
for a debug build seems incorrect. Also had an issue with CLion+Linux where Debug build skipped breakpoints, which can be proof of incorrect configuration.Steps to Reproduce
git clone https://github.com/metacall/core.git
mkdir build
cd build
cmake ..
Context (Environment)
I was trying to build the project
The text was updated successfully, but these errors were encountered: