diff options
author | serge-sans-paille <serge.guelton@telecom-bretagne.eu> | 2018-10-24 23:54:22 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-10-24 23:54:22 (GMT) |
commit | 5ad36f9b21a3aa3b2265b1b43d73522cc3322df2 (patch) | |
tree | c919044bde03b9627fbfdfc7b6a5f34294776c75 /Misc | |
parent | 890423f79606124f6c54935d21f22375c399e23a (diff) | |
download | cpython-5ad36f9b21a3aa3b2265b1b43d73522cc3322df2.zip cpython-5ad36f9b21a3aa3b2265b1b43d73522cc3322df2.tar.gz cpython-5ad36f9b21a3aa3b2265b1b43d73522cc3322df2.tar.bz2 |
bpo-28015: Support LTO build with clang (GH-9908)
.o generated by clang in LTO mode actually are LLVM bitcode files, which
leads to a few errors during configure/build step:
- add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used
to build autoconf test case, and some are not compatible with clang LTO
(they assume binary in the .o, not bitcode)
- force llvm-ar instead of ar, as ar is not aware of .o files generated
by clang -flto
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Build/2018-10-16-12-22-36.bpo-28015.ylSgFh.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2018-10-16-12-22-36.bpo-28015.ylSgFh.rst b/Misc/NEWS.d/next/Build/2018-10-16-12-22-36.bpo-28015.ylSgFh.rst new file mode 100644 index 0000000..5a7a43c --- /dev/null +++ b/Misc/NEWS.d/next/Build/2018-10-16-12-22-36.bpo-28015.ylSgFh.rst @@ -0,0 +1 @@ +Have --with-lto works correctly with clang. |