diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2019-10-06 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-01-09 07:54:02 +0100 |
| commit | 78e7eeeaa1f93f40fa96c36194b1afdfbfdb7364 (patch) | |
| tree | 9adbb7788d951a29bdeaf2326c06eab82b9ff8db /src/librustc_msan | |
| parent | adc65725004c8aac16392fe4052c3e347181157d (diff) | |
| download | rust-78e7eeeaa1f93f40fa96c36194b1afdfbfdb7364.tar.gz rust-78e7eeeaa1f93f40fa96c36194b1afdfbfdb7364.zip | |
Remove sanitizer runtime crates
Diffstat (limited to 'src/librustc_msan')
| -rw-r--r-- | src/librustc_msan/Cargo.toml | 20 | ||||
| -rw-r--r-- | src/librustc_msan/build.rs | 29 | ||||
| -rw-r--r-- | src/librustc_msan/lib.rs | 10 |
3 files changed, 0 insertions, 59 deletions
diff --git a/src/librustc_msan/Cargo.toml b/src/librustc_msan/Cargo.toml deleted file mode 100644 index bda40785725..00000000000 --- a/src/librustc_msan/Cargo.toml +++ /dev/null @@ -1,20 +0,0 @@ -[package] -authors = ["The Rust Project Developers"] -build = "build.rs" -name = "rustc_msan" -version = "0.0.0" -edition = "2018" - -[lib] -name = "rustc_msan" -path = "lib.rs" -test = false - -[build-dependencies] -build_helper = { path = "../build_helper" } -cmake = "0.1.38" - -[dependencies] -alloc = { path = "../liballoc" } -core = { path = "../libcore" } -compiler_builtins = "0.1.0" diff --git a/src/librustc_msan/build.rs b/src/librustc_msan/build.rs deleted file mode 100644 index dc08d51b51c..00000000000 --- a/src/librustc_msan/build.rs +++ /dev/null @@ -1,29 +0,0 @@ -use build_helper::sanitizer_lib_boilerplate; -use std::env; - -use cmake::Config; - -fn main() { - println!("cargo:rerun-if-env-changed=RUSTC_BUILD_SANITIZERS"); - if env::var("RUSTC_BUILD_SANITIZERS") != Ok("1".to_string()) { - return; - } - if let Some(llvm_config) = env::var_os("LLVM_CONFIG") { - build_helper::restore_library_path(); - - let (native, target) = match sanitizer_lib_boilerplate("msan") { - Ok(native) => native, - _ => return, - }; - - Config::new(&native.src_dir) - .define("COMPILER_RT_BUILD_SANITIZERS", "ON") - .define("COMPILER_RT_BUILD_BUILTINS", "OFF") - .define("COMPILER_RT_BUILD_XRAY", "OFF") - .define("LLVM_CONFIG_PATH", llvm_config) - .out_dir(&native.out_dir) - .build_target(&target) - .build(); - } - println!("cargo:rerun-if-env-changed=LLVM_CONFIG"); -} diff --git a/src/librustc_msan/lib.rs b/src/librustc_msan/lib.rs deleted file mode 100644 index bdbc154f4e8..00000000000 --- a/src/librustc_msan/lib.rs +++ /dev/null @@ -1,10 +0,0 @@ -#![sanitizer_runtime] -#![feature(nll)] -#![feature(sanitizer_runtime)] -#![feature(staged_api)] -#![no_std] -#![unstable( - feature = "sanitizer_runtime_lib", - reason = "internal implementation detail of sanitizers", - issue = "none" -)] |
