8000 Merge pull request #17623 from QuLogic/disableable-lto · matplotlib/matplotlib@935cc25 · GitHub
[go: up one dir, main page]

Skip to content

Commit 935cc25

Browse files
authored
Merge pull request #17623 from QuLogic/disableable-lto
2 parents 7930213 + 9782f7c commit 935cc25

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

setup.cfg.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
[egg_info]
44

55
[libs]
6+
# By default, Matplotlib builds with LTO, which may be slow if you re-compile
7+
# often, and don't need the space saving/speedup.
8+
#enable_lto = True
69
# By default, Matplotlib downloads and builds its own copy of FreeType, and
710
# builds its own copy of Qhull. You may set the following to True to instead
811
# link against a system FreeType/Qhull.

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def add_optimization_flags(self):
103103
"""
104104

105105
env = os.environ.copy()
106+
if not setupext.config.getboolean('libs', 'enable_lto', fallback=True):
107+
return env
106108
if sys.platform == 'win32':
107109
return env
108110

0 commit comments

Comments
 (0)
0