Enable `EHCONT` for some DLLs and for PGO instrumentation (#55942)
authorKoundinya Veluri <kouvel@users.noreply.github.com>
Thu, 22 Jul 2021 16:25:22 +0000 (09:25 -0700)
committerGitHub <noreply@github.com>
Thu, 22 Jul 2021 16:25:22 +0000 (09:25 -0700)
commitf28702c47c6753dbaf312128ae002a69499e8364
treea3fd08c59b83f1bb0fd799c6134f45bdc1460206
parent17ada00707f0e7346ce7be399807f80f42158119
Enable `EHCONT` for some DLLs and for PGO instrumentation (#55942)

* Enable `EHCONT` for some DLLs and for PGO instrumentation

- PGD files used for PGO optimziation need to be collected/produced against binaries with identical compiler features
- Enabled `/guard:ehcont` as a compiler option but not as a linker option
- Enabled `/guard:ehcont` and `/cetcompat` as a linker options for PGO instrumentation only for now
- Once new profile data is published, another PR would follow to enable `/guard:ehcont` and `/cetcompat` as linker options

* Fix build
eng/native/configurecompiler.cmake
src/coreclr/pgosupport.cmake
src/libraries/Native/Windows/CMakeLists.txt