Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong openmp flag on Windows #804
Hi @matthew-brett and many thanks for reporting this issue.
In order to be able to decide between
An alternative hack would be to do what you did before with creating a small c file were omp.h was imported and then try to roll through the different possible flags until the c file compiles correctly. We could even go further to roll through the different available compilers and report what is available and compile with openmp correctly. Not sure how we can get the available compilers in python correctly. I know that distutils has some functionality about that (with msvc included) but I don't see clang for example if we want to support that too.
Possibly we may need to brainstorm a bit about this @matthew-brett. First of all do you have a good strategy to know which compiler is being used for building the cython modules? So we can set the correct flags? Any other ideas?
We might be able to get away with:
I can't see any use of the HAVE_OPENMP flags so I guess it doesn't matter that we checking different flags for the same thing here.