Skip to content

Commit 46f1d42

Browse files
committed
Fix libcore build
1 parent b035a7e commit 46f1d42

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

crates/core_arch/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ readme = "README.md"
1414
keywords = ["core", "simd", "arch", "intrinsics"]
1515
categories = ["hardware-support", "no-std"]
1616
license = "MIT/Apache-2.0"
17+
build = "build.rs"
1718

1819
[badges]
1920
travis-ci = { repository = "rust-lang-nursery/stdsimd" }

crates/core_arch/build.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
use std::env;
2-
31
fn main() {
4-
println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap());
5-
println!("cargo:rerurn-if-changed=build.rs");
2+
println!("cargo:rustc-cfg=core_arch_docs");
63
}

crates/core_arch/src/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ mod macros;
55

66
mod simd;
77

8-
#[doc(include = "core_arch_docs.md")]
8+
#[cfg_attr(not(core_arch_docs), doc(include = "../stdsimd/crates/core_arch/src/core_arch_docs.md"))]
9+
#[cfg_attr(core_arch_docs, doc(include = "core_arch_docs.md"))]
910
#[stable(feature = "simd_arch", since = "1.27.0")]
1011
pub mod arch {
1112
/// Platform-specific intrinsics for the `x86` platform.

0 commit comments

Comments
 (0)