Skip to content

extra_compile_args seemingly ignored by custom BuildExt #23

Closed
@mivade

Description

@mivade

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 the extra_compile_args=['-fopenmp'] is given to the Extension.

Workaround: in BuildExt.build_extensions, add:

opts.append('-fopenmp')

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 to extra_compile_args.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions