diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-10-15 22:13:20 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-10-15 22:18:31 +0200 |
commit | a356a103460d1b97428108431f7e73e7eda9ee85 (patch) | |
tree | d62d140286f85d32eececda71d0aab0c67afa8d0 /numpy/doc/byteswapping.py | |
parent | e2218a6984b756a1806041f8fb6869f63365ad10 (diff) | |
download | numpy-a356a103460d1b97428108431f7e73e7eda9ee85.tar.gz |
BLD: try linking a file if compile long double repr detection fails
When compiler uses link time optimization it will not emit the binary
representation of the long double during linking. This prevents building
numpy with -flto.
To avoid this try linking the object when the compile detection failed.
With this change numpy can be built with link time optimization with 4 worker
processes using following command:
CC='gcc -fno-fat-lto-objects -flto=4 -fuse-linker-plugin -O3' \
LDSHARED='gcc -fno-fat-lto-objects -flto=4 -fuse-linker-plugin -shared
-O3' AR=gcc-ar \
python setup.py build_ext
See also:
https://www.mail-archive.com/numpy-discussion@scipy.org/msg45535.html
Should also work with icc's -ipo switch (probably closes gh-4992)
Diffstat (limited to 'numpy/doc/byteswapping.py')
0 files changed, 0 insertions, 0 deletions