From 89cfe3c848585ea1b18d6db3fca21668882da979 Mon Sep 17 00:00:00 2001 From: Jules P?nuchot Date: Fri, 19 May 2023 11:29:12 +0200 Subject: [PATCH 1/2] add -flto to link options --- cmake/ctbench-compile-opts.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/ctbench-compile-opts.cmake b/cmake/ctbench-compile-opts.cmake index 93fc190..bd0c78c 100644 --- a/cmake/ctbench-compile-opts.cmake +++ b/cmake/ctbench-compile-opts.cmake @@ -15,4 +15,6 @@ target_compile_options( -flto -fPIC) +target_link_options(ctbench-compile-opts INTERFACE -flto) + target_compile_features(ctbench-compile-opts INTERFACE cxx_std_20) From f2ae8d705d98483c3f36c24b378e507506bbe00b Mon Sep 17 00:00:00 2001 From: Jules P?nuchot Date: Fri, 19 May 2023 11:34:26 +0200 Subject: [PATCH 2/2] removed redundant compile and link options --- grapher/cmake/grapher-target.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/grapher/cmake/grapher-target.cmake b/grapher/cmake/grapher-target.cmake index 2d53807..0a8fd4a 100644 --- a/grapher/cmake/grapher-target.cmake +++ b/grapher/cmake/grapher-target.cmake @@ -10,5 +10,4 @@ target_link_libraries( grapher PUBLIC ctbench-compile-opts nlohmann_json::nlohmann_json sciplot::sciplot fmt::fmt stdc++fs tbb ${llvm_libs}) -target_compile_options(grapher PUBLIC -DJSON_NOEXCEPTION -march=native -flto) -target_link_options(grapher PUBLIC -flto) +target_compile_options(grapher PUBLIC -DJSON_NOEXCEPTION)