sccache: Fix sccache compilation on aarch64-linux platform
sccache-dist is only supported on x86_64 Linux machines, see this comment: https://github.com/mozilla/sccache/blob/main/src/bin/sccache-dist/main.rs#L69
This commit is contained in:
parent
bcb0b42837
commit
e551794bfe
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
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,
|
# Tests fail because of client server setup which is not possible inside the pure environment,
|
||||||
# see https://github.com/mozilla/sccache/issues/460
|
# see https://github.com/mozilla/sccache/issues/460
|
||||||
|
|
Loading…
Reference in a new issue