Skip to content

Commit

Permalink
fix: make -flto compile flag work
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauritz8 committed Oct 15, 2024
1 parent c98a059 commit 5657a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_compile_options(-O3 -march=native -flto)
add_link_options(-flto)


include(FetchContent)
Expand Down

0 comments on commit 5657a14

Please sign in to comment.