mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
[release-0.4] cmake: Check for -fno-common and use it if available
This commit is contained in:
committed by
James McCoy
parent
0493fa00fa
commit
faaf83a49e
@ -314,6 +314,11 @@ if(UNIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
check_c_compiler_flag(-fno-common HAVE_FNO_COMMON)
|
||||
if (HAVE_FNO_COMMON)
|
||||
add_compile_options(-fno-common)
|
||||
endif()
|
||||
|
||||
check_c_compiler_flag(-fdiagnostics-color=auto HAS_DIAG_COLOR_FLAG)
|
||||
if(HAS_DIAG_COLOR_FLAG)
|
||||
if(CMAKE_GENERATOR MATCHES "Ninja")
|
||||
|
Reference in New Issue
Block a user