Skip to content

Intrinsics get compiled even if appropriate target_features are not enabled #323

Description

@newpavlov

If we'll take aesni crate and will remove the following lines from lib.rs:

#![cfg(any(target_arch = "x86_64", target_arch = "x86"))]
#![cfg(target_feature = "aes")]

Crate will compile even without RUSTFLAGS="-C target_feature=+aes". (although resulting code will be 4 times slower) Is it intended behavior?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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