-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extra_compile_args seemingly ignored by custom BuildExt #23
Comments
adding two lines fixed this:
|
what is the |
Oh, I see, in
in
It works out. |
Trying to adapt this to a project and add
-fopenmp
, I found that I get warnings about ignoring#pragma omp parallel for
. Inspecting the actual compiler call,-fopenmp
doesn't show up even though theextra_compile_args=['-fopenmp']
is given to theExtension
.Workaround: in
BuildExt.build_extensions
, add:A better way to do this might be to note use a custom
build_ext
class at all, but instead just do all the platform/compiler checking logic at the top level and passing the results in toextra_compile_args
.The text was updated successfully, but these errors were encountered: