Skip to content

Commit

Permalink
ci: diagnose lto error
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Aug 30, 2021
1 parent a45ad09 commit b06efcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 3rdparty/exprtk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ target_compile_definitions(exprtk INTERFACE
-Dexprtk_disable_return_statement
-Dexprtk_disable_superscalar_unroll
-Dexprtk_disable_rtl_io_file
-Dexprtk_disable_rtl_vecops)
-Dexprtk_disable_rtl_vecops
-Dexprtk_disable_string_capabilities)
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ if(MSVC)
ELSE (CMAKE_C_FLAGS MATCHES "/W[0-4]")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
ENDIF (CMAKE_C_FLAGS MATCHES "/W[0-4]")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj ")
else()
ucm_add_flags(CXX "-fno-sized-deallocation -fno-omit-frame-pointer")
ucm_add_flags(C CXX "-mmmx -msse -msse2 -msse3 -mssse3 -mpopcnt")
Expand Down Expand Up @@ -149,6 +151,7 @@ ucm_print_flags()
find_package(Qt5 COMPONENTS Core Widgets Concurrent Network Xml REQUIRED)

message("Qt version ${Qt5Core_VERSION}")
message("LTO ${KLOGG_USE_LTO}")

set(CMAKE_AUTOMOC OFF)
set(CMAKE_INCLUDE_CURRENT_DIR OFF)
Expand Down

0 comments on commit b06efcc

Please sign in to comment.