From e8bef7ee3f898974689a83d72caca9bc7f91880e Mon Sep 17 00:00:00 2001 From: tmiasko Date: Fri, 11 Dec 2020 18:02:35 +0100 Subject: [PATCH] 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))]`. --- library/stdarch/crates/core_arch/src/x86/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/stdarch/crates/core_arch/src/x86/mod.rs b/library/stdarch/crates/core_arch/src/x86/mod.rs index d46a3779ad3b..271707ecef8c 100644 --- a/library/stdarch/crates/core_arch/src/x86/mod.rs +++ b/library/stdarch/crates/core_arch/src/x86/mod.rs @@ -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;