Skip to content

Commit f1ed228

Browse files
authored
Use a bootstrap guard for modules with new target features (rust-lang#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))]`.
1 parent 3231a90 commit f1ed228

File tree

1 file changed

+8
-0
lines changed
  • crates/core_arch/src/x86

1 file changed

+8
-0
lines changed

crates/core_arch/src/x86/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,19 +675,27 @@ pub use self::avx512cd::*;
675675
mod avx512ifma;
676676
pub use self::avx512ifma::*;
677677

678+
#[cfg(not(bootstrap))]
678679
mod avx512bitalg;
680+
#[cfg(not(bootstrap))]
679681
pub use self::avx512bitalg::*;
680682

683+
#[cfg(not(bootstrap))]
681684
mod avx512gfni;
685+
#[cfg(not(bootstrap))]
682686
pub use self::avx512gfni::*;
683687

684688
mod avx512vpopcntdq;
685689
pub use self::avx512vpopcntdq::*;
686690

691+
#[cfg(not(bootstrap))]
687692
mod avx512vaes;
693+
#[cfg(not(bootstrap))]
688694
pub use self::avx512vaes::*;
689695

696+
#[cfg(not(bootstrap))]
690697
mod avx512vpclmulqdq;
698+
#[cfg(not(bootstrap))]
691699
pub use self::avx512vpclmulqdq::*;
692700

693701
mod bt;

0 commit comments

Comments
 (0)