Skip to content

Commit

Permalink
Enable compiler generation of CFG security checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySotkin committed Jul 5, 2019
1 parent a090038 commit ec4a691
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ include(TableGen)

find_package(Git REQUIRED)

# Enable compiler generation of Control Flow Guard security checks.
if (WIN32)
add_compile_options(/guard:cf /DYNAMICBASE)
endif()

if (NOT WIN32)
add_subdirectory( linux_linker )
endif()
Expand Down

0 comments on commit ec4a691

Please sign in to comment.