mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-17 23:45:21 +01:00
Disable LTO (just in case it gives hard to debug compiler problems)
This commit is contained in:
parent
6f6a90adbb
commit
ebe72a4b16
1 changed files with 2 additions and 13 deletions
|
@ -13,6 +13,8 @@ set(IMAGER_VERSION_CSV "${IMAGER_VERSION_MAJOR},${IMAGER_VERSION_MINOR},5,0")
|
|||
add_definitions(-DIMAGER_VERSION_STR="${IMAGER_VERSION_STR}")
|
||||
add_definitions(-DIMAGER_VERSION_CSV=${IMAGER_VERSION_CSV})
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
#add_compile_options("-fsanitize=address")
|
||||
#add_link_options("-fsanitize=address")
|
||||
|
||||
# Adding headers explicity so they are displayed in Qt Creator
|
||||
set(HEADERS config.h imagewriter.h networkaccessmanagerfactory.h nan.h drivelistitem.h drivelistmodel.h drivelistmodelpollthread.h driveformatthread.h powersaveblocker.h cli.h
|
||||
|
@ -150,19 +152,6 @@ endif()
|
|||
set_property(TARGET ${PROJECT_NAME} PROPERTY AUTOMOC ON)
|
||||
set_property(TARGET ${PROJECT_NAME} PROPERTY AUTORCC ON)
|
||||
|
||||
if (NOT WIN32)
|
||||
# Enable link time optimization if available
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT iposupported OUTPUT ipoerror)
|
||||
|
||||
if(iposupported)
|
||||
message("Enabled LTO")
|
||||
set_property(TARGET ${PROJECT_NAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
else()
|
||||
message(STATUS "LTO not supported: <${ipoerror}>")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ENABLE_TELEMETRY)
|
||||
add_definitions(-DTELEMETRY_ENABLED_DEFAULT=true)
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue