treewide: Get rid of *Platform.arch

Use `parsed.cpu.name` or `platform.gcc.arch` instead.
This commit is contained in:
John Ericson
2018-05-10 01:37:31 -04:00
parent a31984ecda
commit a02be2bd85
7 changed files with 11 additions and 17 deletions
@@ -24,7 +24,9 @@ stdenv.mkDerivation rec {
];
# We should find a better way to access the arch reliably.
crossArch = hostPlatform.arch or null;
crossArch = if stdenv.hostPlatform != stdenv.buildPlatform
then hostPlatform.parsed.cpu.name
else null;
preConfigure = ''
if test -n "$crossConfig"; then
@@ -56,7 +56,9 @@ stdenv.mkDerivation rec {
];
# We should find a better way to access the arch reliably.
crossArch = hostPlatform.arch or null;
crossArch = if stdenv.hostPlatform != stdenv.buildPlatform
then hostPlatform.parsed.cpu.name
else null;
preConfigure = ''
if test -n "$crossConfig"; then