Are extra_compile_args actually used in all compile steps? I set: extra_compile_args = -march=native -O3
On some compile steps, it echos: compile options: '-DHAVE_CBLAS -Inumpy/core/include -Ibuild/src.linux- x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private - Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath - Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort - I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux- x86_64-2.7/numpy/core/src/private -c' extra options: '-march=native -O3' But on at least one it doesn't: building 'numpy.random.mtrand' extension compiling C sources C compiler: gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall - Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack- protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 - mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall - Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack- protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 - mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -march=native -O3 -fPIC creating build/temp.linux-x86_64-2.7/numpy/random creating build/temp.linux-x86_64-2.7/numpy/random/mtrand compile options: '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 - D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux- x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private - Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath - Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort - I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux- x86_64-2.7/numpy/core/src/private -c' Building with: CFLAGS='-march=native -O3' python setup.py build Does seem to use my CFLAGS, as it always did on previous numpy versions. It seems a bit difficult to verify what the exact compile/link steps were. Is there a verbose flag? _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion