Skip to content

Incompatible CLI options for VS 2019 Debug build  #237

Open
@burnerlee

Description

@burnerlee

🐛 Bug Report

When building in Visual Studio 2019 in Debug mode I get this error:
image
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

  1. git clone https://github.com/metacall/core.git
  2. install VS 2019
  3. mkdir build
  4. cd build
  5. cmake ..
  6. Hit Local Windows Debugger here
    image

Context (Environment)

I was trying to build the project

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdevopsRelated to DevOps infrastructure of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions