Skip to content

Automatically set -march, -mavx, etc flags based on CARGO_CFG_TARGET_FEATURE_* to support SIMD #220

Open
@SabrinaJewson

Description

@SabrinaJewson

It would be useful if this crate read the CARGO_CFG_TARGET_ARCH and CARGO_CFG_TARGET_FEATURE environment variables to determine appropriate -march and other -m* flags to enable with CMake. For example, CARGO_CFG_TARGET_FEATURE=mmx,sse would correspond to -mmmx and -msse, CARGO_CFG_TARGET_ARCH=skylake would corresponding to -march=skylake, etc.

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