mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 15:12:26 +00:00
Fix LTO (fixes #26)
This commit is contained in:
parent
23d2301496
commit
13f3c69ec6
@ -16,6 +16,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
|||||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0)
|
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wimplicit-fallthrough=0")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wimplicit-fallthrough=0")
|
||||||
endif()
|
endif()
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-lto-type-mismatch")
|
||||||
endif()
|
endif()
|
||||||
if (CMAKE_BUILD_TYPE MATCHES Release)
|
if (CMAKE_BUILD_TYPE MATCHES Release)
|
||||||
# Some variables are only used for assertions
|
# Some variables are only used for assertions
|
||||||
|
Loading…
Reference in New Issue
Block a user