python-3.xcythoncythonize

Cython: compiler flag -O3 seems deprecated


I used the details provided in this question to set the optimization flag to '-o3'. However, I have the following issue:

How can I solve this?


Solution

  • The -O3 flag is only supported by gcc and clang. Since you seem to be using the MSVC compiler, you can use the /Ox flag, see here for more details.