diff --git a/llvm/cmake/modules/AddSecurityFlags.cmake b/llvm/cmake/modules/AddSecurityFlags.cmake index 774ca47b5cd6e..d43b35cbd4f30 100644 --- a/llvm/cmake/modules/AddSecurityFlags.cmake +++ b/llvm/cmake/modules/AddSecurityFlags.cmake @@ -31,7 +31,7 @@ macro(add_link_option_ext flag name) endif() endmacro() -function(append_common_extra_security_flags) +macro(append_common_extra_security_flags) if( LLVM_ON_UNIX ) # Fortify Source (strongly recommended): if (CMAKE_BUILD_TYPE STREQUAL "Debug") @@ -70,7 +70,7 @@ function(append_common_extra_security_flags) CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS) endif() -endfunction() +endmacro() if ( EXTRA_SECURITY_FLAGS ) if (EXTRA_SECURITY_FLAGS STREQUAL "none")