Use a bootstrap guard for modules with new target features (#970)

The recently added modules use target features that are not yet
available in rustc compiler used for bootstrapping.

Guard them with `#[cfg(not(bootstrap))]`.
This commit is contained in:
tmiasko 2020-12-11 18:02:35 +01:00 committed by GitHub
parent 9dc04c006f
commit e8bef7ee3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -675,19 +675,27 @@ pub use self::avx512cd::*;
mod avx512ifma;
pub use self::avx512ifma::*;
#[cfg(not(bootstrap))]
mod avx512bitalg;
#[cfg(not(bootstrap))]
pub use self::avx512bitalg::*;
#[cfg(not(bootstrap))]
mod avx512gfni;
#[cfg(not(bootstrap))]
pub use self::avx512gfni::*;
mod avx512vpopcntdq;
pub use self::avx512vpopcntdq::*;
#[cfg(not(bootstrap))]
mod avx512vaes;
#[cfg(not(bootstrap))]
pub use self::avx512vaes::*;
#[cfg(not(bootstrap))]
mod avx512vpclmulqdq;
#[cfg(not(bootstrap))]
pub use self::avx512vpclmulqdq::*;
mod bt;