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'
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: