Hi All,
According to the documentation page:
http://docs.scipy.org/doc/
numpy/reference/distutils.html
Function add_library allows the following keywords:
extra_f77_compiler_args
extra_f90_compiler_args
however setting them seem to have no effect for my extension. Digging deeper, I discovered,
the documentation is inconsistent with the implementation, as per
https://github.com/numpy/
numpy/blob/v1.11.0/numpy/ distutils/fcompiler/__init__. py#L569
https://github.com/numpy/
numpy/blob/v1.11.0/numpy/ distutils/fcompiler/__init__. py#L583
And indeed, setting extra_f77_compile_arg has the effect I was looking for.
Fixing it is easy, but I am less certain whether we should fix the docs, or the code.
Given that add_extension lists extra_compile_args, extra_f77_compile_args, etc, I would think it
Is the documentation that need to change.
Please confirm, and I will open up a pull request for this.