Skip to content

Commit

Permalink
[Python] Update CLANG_PROHIBITED.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and osschar committed Oct 10, 2019
1 parent bdd6aca commit 17b9a91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bindings/python/CMakeLists.txt
Expand Up @@ -14,6 +14,14 @@ if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
message( "clang 3.5" )
set( CLANG_PROHIBITED ", '-Wp,-D_FORTIFY_SOURCE=2', '-fstack-protector-strong'" )
endif()
if( ( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0 ) OR ( CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0 ) )
message( "clang 6.0" )
set( CLANG_PROHIBITED ", '-fcf-protection'" )
endif()
if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0 )
message( "clang > 7.0" )
set( CLANG_PROHIBITED ", '-fstack-clash-protection'" )
endif()
endif()

configure_file(${SETUP_PY_IN} ${SETUP_PY})
Expand Down

0 comments on commit 17b9a91

Please sign in to comment.