Skip to content

PolyHook2corrupt CMake link and compile flags #219

@orange-cpp

Description

@orange-cpp

When i use polyhook2 from vcpkg it sets: /wd4201 and /OPT:NOREF even in release build wich means each unused function will be included into binary. /wd4201 breaks support for clang compiler since you will get:

	clang version 19.1.5
	Target: x86_64-pc-windows-msvc
	Thread model: posix
	InstalledDir: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\bin
	clang++: error: no such file or directory: '/wd4201'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions