nix: don’t precompile headers on cross compilation
avoids this error: mk/precompiled-headers.mk:38: *** Don't know how to precompile headers on aarch64-unknown-linux-gnu-g++. Stop.
This commit is contained in:
parent
4855aa62fa
commit
01ede8c615
|
@ -119,7 +119,8 @@ common =
|
||||||
# RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50
|
# RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50
|
||||||
++ lib.optional (!withLibseccomp) "--disable-seccomp-sandboxing";
|
++ lib.optional (!withLibseccomp) "--disable-seccomp-sandboxing";
|
||||||
|
|
||||||
makeFlags = [ "profiledir=$(out)/etc/profile.d" ];
|
makeFlags = [ "profiledir=$(out)/etc/profile.d" ]
|
||||||
|
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "PRECOMPILE_HEADERS=0";
|
||||||
|
|
||||||
installFlags = [ "sysconfdir=$(out)/etc" ];
|
installFlags = [ "sysconfdir=$(out)/etc" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue