[Numpy-svn] [numpy/numpy] a356a1: BLD: try linking a file if compile long double rep...
GitHub
noreply at github.com
Thu Oct 16 15:16:31 EDT 2014
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: a356a103460d1b97428108431f7e73e7eda9ee85
https://github.com/numpy/numpy/commit/a356a103460d1b97428108431f7e73e7eda9ee85
Author: Julian Taylor <jtaylor.debian at googlemail.com>
Date: 2014-10-15 (Wed, 15 Oct 2014)
Changed paths:
M numpy/core/setup_common.py
Log Message:
-----------
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)
Commit: f6c5611e941409faa36385b8d4c7d321cb7c03d4
https://github.com/numpy/numpy/commit/f6c5611e941409faa36385b8d4c7d321cb7c03d4
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2014-10-16 (Thu, 16 Oct 2014)
Changed paths:
M numpy/core/setup_common.py
Log Message:
-----------
Merge pull request #5190 from juliantaylor/lto-support
BLD: try linking a file if compile long double repr detection fails
Compare: https://github.com/numpy/numpy/compare/443a49a271e6...f6c5611e9414
More information about the Numpy-svn
mailing list