From 8660a33fcf455f7a562111da2560585755c4514d Mon Sep 17 00:00:00 2001 From: andiwand Date: Mon, 25 Dec 2023 22:31:15 +0100 Subject: [PATCH] lto --- CMakeLists.txt | 2 ++ test/data/reference-output/odr-private | 2 +- test/data/reference-output/odr-public | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aa2be051..34154564f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,8 @@ set(CMAKE_CXX_EXTENSIONS OFF) option(ODR_TEST "enable tests" ON) option(ODR_CLANG_TIDY "Run clang-tidy static analysis" OFF) +set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) + # TODO defining global compiler flags seems to be bad practice with conan # TODO consider using conan profiles if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR diff --git a/test/data/reference-output/odr-private b/test/data/reference-output/odr-private index 1b54e4523..d201fef71 160000 --- a/test/data/reference-output/odr-private +++ b/test/data/reference-output/odr-private @@ -1 +1 @@ -Subproject commit 1b54e452350216edfe09dfd697af002add29fa87 +Subproject commit d201fef71c9d470369e55ffd2cecbc9d2e4e2e84 diff --git a/test/data/reference-output/odr-public b/test/data/reference-output/odr-public index 5d02b56b8..4429328a5 160000 --- a/test/data/reference-output/odr-public +++ b/test/data/reference-output/odr-public @@ -1 +1 @@ -Subproject commit 5d02b56b870baaf6b147fa5711ed0e3ab998700b +Subproject commit 4429328a514c1adc1f47343247c458f37bf06f9f