Re: [f2py] Override f2py compiler settings
Sturla Molden <[email protected]> Fri, 28 Mar 2014 19:43:59 +0000 (UTC)
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
Justin M Wozniak <wozniak-zhzY/AYb9nBYTrM/[email protected]> wrote: > Now, I would really like to use the IBM XL compilers. I used > --fcompiler=ibm . It seems to be supported: https://github.com/numpy/numpy/blob/master/numpy/distutils/fcompiler/ibm.py >> Normally you should use the same C compiler as was used to build Python, >> which is nearly always the system cc. Trying to control which C compiler to >> use is usually inherently bad on Linux. > > This system is kind of complicated- it has many compilers and settings. > It's a cross-compiled system. Same rule applies to cross-compilation: Point CC to whatever C compiler you want to use. There is just one C compiler class for Unix/Linux in distutils. --compiler is for choosing between Microsoft Visual C++, Borland C++ Builder, MinGW GCC and Cygwin GCC on Windows. You cannot use it for anything on Linux. Sturla