version = "0.0.0"
dependencies = [
"alloc_system 0.0.0",
+ "build_helper 0.1.0",
"cmake 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)",
"core 0.0.0",
]
version = "0.0.0"
dependencies = [
"alloc_system 0.0.0",
+ "build_helper 0.1.0",
"cmake 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)",
"core 0.0.0",
]
version = "0.0.0"
dependencies = [
"alloc_system 0.0.0",
+ "build_helper 0.1.0",
"cmake 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)",
"core 0.0.0",
]
version = "0.0.0"
dependencies = [
"alloc_system 0.0.0",
+ "build_helper 0.1.0",
"cmake 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)",
"core 0.0.0",
]
path = "lib.rs"
[build-dependencies]
+build_helper = { path = "../build_helper" }
cmake = "0.1.18"
[dependencies]
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+extern crate build_helper;
extern crate cmake;
use std::path::PathBuf;
dst.join("build/lib/linux").display());
println!("cargo:rustc-link-lib=static=clang_rt.asan-x86_64");
- let src_dir = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
- let mut stack = src_dir.join("../compiler-rt")
- .read_dir()
- .unwrap()
- .map(|e| e.unwrap())
- .filter(|e| &*e.file_name() != ".git")
- .collect::<Vec<_>>();
- while let Some(entry) = stack.pop() {
- let path = entry.path();
- if entry.file_type().unwrap().is_dir() {
- stack.extend(path.read_dir().unwrap().map(|e| e.unwrap()));
- } else {
- println!("cargo:rerun-if-changed={}", path.display());
- }
- }
+ build_helper::rerun_if_changed_anything_in_dir(&PathBuf::from(env::var("CARGO_MANIFEST_DIR")
+ .unwrap())
+ .join("../compiler-rt"));
}
println!("cargo:rerun-if-changed=build.rs");
path = "lib.rs"
[build-dependencies]
+build_helper = { path = "../build_helper" }
cmake = "0.1.18"
[dependencies]
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+extern crate build_helper;
extern crate cmake;
use std::path::PathBuf;
dst.join("build/lib/linux").display());
println!("cargo:rustc-link-lib=static=clang_rt.lsan-x86_64");
- let src_dir = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
- let mut stack = src_dir.join("../compiler-rt")
- .read_dir()
- .unwrap()
- .map(|e| e.unwrap())
- .filter(|e| &*e.file_name() != ".git")
- .collect::<Vec<_>>();
- while let Some(entry) = stack.pop() {
- let path = entry.path();
- if entry.file_type().unwrap().is_dir() {
- stack.extend(path.read_dir().unwrap().map(|e| e.unwrap()));
- } else {
- println!("cargo:rerun-if-changed={}", path.display());
- }
- }
+ build_helper::rerun_if_changed_anything_in_dir(&PathBuf::from(env::var("CARGO_MANIFEST_DIR")
+ .unwrap())
+ .join("../compiler-rt"));
}
println!("cargo:rerun-if-changed=build.rs");
path = "lib.rs"
[build-dependencies]
+build_helper = { path = "../build_helper" }
cmake = "0.1.18"
[dependencies]
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+extern crate build_helper;
extern crate cmake;
use std::path::PathBuf;
dst.join("build/lib/linux").display());
println!("cargo:rustc-link-lib=static=clang_rt.msan-x86_64");
- let src_dir = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
- let mut stack = src_dir.join("../compiler-rt")
- .read_dir()
- .unwrap()
- .map(|e| e.unwrap())
- .filter(|e| &*e.file_name() != ".git")
- .collect::<Vec<_>>();
- while let Some(entry) = stack.pop() {
- let path = entry.path();
- if entry.file_type().unwrap().is_dir() {
- stack.extend(path.read_dir().unwrap().map(|e| e.unwrap()));
- } else {
- println!("cargo:rerun-if-changed={}", path.display());
- }
- }
+ build_helper::rerun_if_changed_anything_in_dir(&PathBuf::from(env::var("CARGO_MANIFEST_DIR")
+ .unwrap())
+ .join("../compiler-rt"));
}
println!("cargo:rerun-if-changed=build.rs");
path = "lib.rs"
[build-dependencies]
+build_helper = { path = "../build_helper" }
cmake = "0.1.18"
[dependencies]
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+extern crate build_helper;
extern crate cmake;
use std::path::PathBuf;
dst.join("build/lib/linux").display());
println!("cargo:rustc-link-lib=static=clang_rt.tsan-x86_64");
- let src_dir = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
- let mut stack = src_dir.join("../compiler-rt")
- .read_dir()
- .unwrap()
- .map(|e| e.unwrap())
- .filter(|e| &*e.file_name() != ".git")
- .collect::<Vec<_>>();
- while let Some(entry) = stack.pop() {
- let path = entry.path();
- if entry.file_type().unwrap().is_dir() {
- stack.extend(path.read_dir().unwrap().map(|e| e.unwrap()));
- } else {
- println!("cargo:rerun-if-changed={}", path.display());
- }
- }
+ build_helper::rerun_if_changed_anything_in_dir(&PathBuf::from(env::var("CARGO_MANIFEST_DIR")
+ .unwrap())
+ .join("../compiler-rt"));
}
println!("cargo:rerun-if-changed=build.rs");