Skip to content

Commit

Permalink
Improve parallel compilation
Browse files Browse the repository at this point in the history
We observed many warnings about serial compilations of e.g. LTRANS jobs,
which is fixed hereby.
  • Loading branch information
jbreue16 committed Oct 22, 2024
1 parent 302b487 commit bfb231a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
# Enable folders for IDEs
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

# Enable LTO (link time optimization) for the project
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto=auto")

# ---------------------------------------------------
# Other configuration options
# ---------------------------------------------------
Expand Down

0 comments on commit bfb231a

Please sign in to comment.