Skip to content

Commit

Permalink
Stop passing --with-lto when building CPython
Browse files Browse the repository at this point in the history
  • Loading branch information
grievejia committed Oct 9, 2021
1 parent e95220c commit 19aeb8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.5 (2021-10-8)

- Disable LTO build of CPython in release mode. Turning on LTO turns out to be rather detrimental to link time when building downstream binaries.

## 0.1.4 (2021-10-5)

- Bump the bundled CPython version to 3.10.0
Expand Down
10 changes: 2 additions & 8 deletions lib/taglessFinal/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
vendor/Modules
(dirs :standard _*))

(env
(release
(env-vars
(CPYTHON_CONFIGURE_OPTION --with-lto))))

(rule
(deps
(source_tree vendor)
(env_var CPYTHON_CONFIGURE_OPTION))
(source_tree vendor))
(targets libpython.a pyconfig.h)
(action
(no-infer
Expand All @@ -21,7 +15,7 @@
MACOSX_DEPLOYMENT_TARGET
11.0
(progn
(system "./configure $CPYTHON_CONFIGURE_OPTION")
(run ./configure)
(run make libpython3.10.a))))
(copy vendor/libpython3.10.a libpython.a)
(copy vendor/pyconfig.h pyconfig.h)))))
Expand Down

0 comments on commit 19aeb8b

Please sign in to comment.