We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7930213 + 9782f7c commit 935cc25Copy full SHA for 935cc25
setup.cfg.template
@@ -3,6 +3,9 @@
3
[egg_info]
4
5
[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
9
# By default, Matplotlib downloads and builds its own copy of FreeType, and
10
# builds its own copy of Qhull. You may set the following to True to instead
11
# link against a system FreeType/Qhull.
setup.py
@@ -103,6 +103,8 @@ def add_optimization_flags(self):
103
"""
104
105
env = os.environ.copy()
106
+ if not setupext.config.getboolean('libs', 'enable_lto', fallback=True):
107
+ return env
108
if sys.platform == 'win32':
109
return env
110
0 commit comments