Skip to content

cmake build: missing /guard:ehcont compiler flag #5646

Description

Compared to the internal stl build (msbuild), the cmake build is missing the following compiler option for 64-bit builds: /guard:ehcont

To reproduce, use cmake to build the x64 target and then link to the .lib (shared dll). This results in the following warning:
msvcprt.lib(vector_algorithms.cpp.obj) : warning LNK4291: module may contain '__except' (Structured Exception Handling) but was not compiled with /guard:ehcont; generating conservative metadata

When linking to the msvcprt.lib library provided by Visual Studio, there is no warning.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuildRelated to the build systemfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions