Skip to content

Commit

Permalink
fix: make sure to compile igrpah with LTO when available
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Jul 1, 2024
1 parent f8963ed commit 951f017
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ def _compile_in(
for deps in "ARPACK BLAS GLPK GMP LAPACK".split():
args.append("-DIGRAPH_USE_INTERNAL_" + deps + "=ON")

# Use link-time optinization if available
args.append("-DIGRAPH_ENABLE_LTO=AUTO")

# -fPIC is needed on Linux so we can link to a static igraph lib from a
# Python shared library
args.append("-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
Expand Down

0 comments on commit 951f017

Please sign in to comment.