Merge pull request #169460 from alekseysidorov/fix_sccache

sccache: Fix sccache compilation on aarch64 platforms
This commit is contained in:
Doron Behar 2022-04-20 20:58:52 +03:00 committed by GitHub
commit f0800b3987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
buildFeatures = lib.optionals (!stdenv.isDarwin) [ "dist-client" "dist-server" ];
# sccache-dist is only supported on x86_64 Linux machines.
buildFeatures = lib.optionals (stdenv.system == "x86_64-linux") [ "dist-client" "dist-server" ];
# Tests fail because of client server setup which is not possible inside the pure environment,
# see https://github.com/mozilla/sccache/issues/460