diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-04-16 12:28:04 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-04-16 12:28:04 +0100 |
commit | dee60d8e2cbd001d2f8e1982e09f654c3a172abb (patch) | |
tree | fa783e9b4ac5de51a044912933dce2fe12da566a /pkgs/development/compilers | |
parent | bd4ad008dd2bfe60f7473cbf652ed3c1b11f4955 (diff) | |
download | nixlib-dee60d8e2cbd001d2f8e1982e09f654c3a172abb.tar nixlib-dee60d8e2cbd001d2f8e1982e09f654c3a172abb.tar.gz nixlib-dee60d8e2cbd001d2f8e1982e09f654c3a172abb.tar.bz2 nixlib-dee60d8e2cbd001d2f8e1982e09f654c3a172abb.tar.lz nixlib-dee60d8e2cbd001d2f8e1982e09f654c3a172abb.tar.xz nixlib-dee60d8e2cbd001d2f8e1982e09f654c3a172abb.tar.zst nixlib-dee60d8e2cbd001d2f8e1982e09f654c3a172abb.zip |
rustc: disable tests for aarch64
upstream is doing the same
Diffstat (limited to 'pkgs/development/compilers')
3 files changed, 6 insertions, 18 deletions
diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix index d9a36273ce1d..f47c1f753ee1 100644 --- a/pkgs/development/compilers/rust/default.nix +++ b/pkgs/development/compilers/rust/default.nix @@ -20,11 +20,14 @@ in rec { configureFlags = [ "--release-channel=stable" ]; + # Upstream is not running tests on aarch64: + # see https://github.com/rust-lang/rust/issues/49807#issuecomment-380860567 + # So we do the same. + doCheck = !stdenv.isAarch64; + patches = [ ./patches/0001-Disable-fragile-tests-libstd-net-tcp-on-Darwin-Linux.patch - ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch - # https://github.com/rust-lang/rust/issues/45410 - ++ stdenv.lib.optional stdenv.isAarch64 ./patches/aarch64-disable-test_loading_cosine.patch; + ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch; }; diff --git a/pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patch b/pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patch deleted file mode 100644 index bafab0e9ef71..000000000000 --- a/pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/src/librustc_metadata/dynamic_lib.rs b/src/librustc_metadata/dynamic_lib.rs -index 1b42fa0..92256dc 100644 ---- a/src/librustc_metadata/dynamic_lib.rs -+++ b/src/librustc_metadata/dynamic_lib.rs -@@ -80,6 +80,7 @@ mod tests { - use std::mem; - - #[test] -+ #[ignore] - fn test_loading_cosine() { - if cfg!(windows) { - return diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 1395d8e9a3ba..19c4a590e454 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -108,9 +108,6 @@ stdenv.mkDerivation { # Useful debugging parameter # export VERBOSE=1 - '' + optionalString stdenv.isAarch64 '' - # https://github.com/rust-lang/rust/issues/49807 - rm -vr src/test/debuginfo/by-value-self-argument-in-trait-impl.rs '' + optionalString stdenv.isDarwin '' # Disable all lldb tests. # error: Can't run LLDB test because LLDB's python path is not set |