mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
cmake: Check for -fno-common and use it if available
This commit is contained in:
parent
823b2104c3
commit
0504f2f88d
@ -308,6 +308,11 @@ if(UNIX)
|
|||||||
endif()
|
endif()
|
||||||
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)
|
check_c_compiler_flag(-fdiagnostics-color=auto HAS_DIAG_COLOR_FLAG)
|
||||||
if(HAS_DIAG_COLOR_FLAG)
|
if(HAS_DIAG_COLOR_FLAG)
|
||||||
if(CMAKE_GENERATOR MATCHES "Ninja")
|
if(CMAKE_GENERATOR MATCHES "Ninja")
|
||||||
|
Loading…
Reference in New Issue
Block a user