Commits

David Gilman authored and Joshua Root committed b12ed55d4d2
Add optimizations variant to python{27,35,36,37}

This flag does PGO (profile-guided optimization) and LTO (link-time optimization) on builds of the Python interpreter. It greatly increases build time so it must be disabled by default.
No tags

lang/python27/Portfile

Modified
158 158 configure.args-append --enable-universalsdk=${configure.sdkroot}
159 159 } else {
160 160 configure.args-append --enable-universalsdk=/
161 161 }
162 162 }
163 163
164 164 variant ucs4 description {Enable support for UCS4} {
165 165 configure.args-append --enable-unicode=ucs4
166 166 }
167 167
168 +variant optimizations description {Compile with LTO and PGO. Build time greatly increased} {
169 + configure.args-append --enable-optimizations
170 +}
171 +
168 172 livecheck.type regex
169 173 livecheck.url ${homepage}downloads/
170 174 livecheck.regex Python (${branch}(?:\\.\\d+)*)

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut