Skip to content

Commit

Permalink
Enable multi-core link time optimization (#6181)
Browse files Browse the repository at this point in the history
  • Loading branch information
roehling authored Jun 8, 2023
1 parent e892d5b commit 96cc475
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ elseif (UNIX) # Linux
};]=])
target_link_options(pybind PRIVATE $<$<CONFIG:Release>:
"-Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/pybind.map" >)
target_link_options(pybind PRIVATE "-flto=auto")
endif()


Expand Down

0 comments on commit 96cc475

Please sign in to comment.