gcc: fix inconsistency in isCross condition
In libgcc.nix, `targetPlatformSlash` is set by checking if hostPlatform == targetPlatform. In default.nix, `targetConfig` (which is also going to be part of the path) is also set by checking if hostPlatform == targetPlatform. However, in common.nix, the recently added `isCross` is set by checking if hostPlatform.config == targetPlatform.config. This means that for platforms like '-nolibc' the paths in common.nix are not set up correctly for libgcc.nix to find and move libgcc_s.so . Changing isCross to also check hostPlatform == targetPlatform fixes this issue.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
let
|
||||
forceLibgccToBuildCrtStuff = import ./libgcc-buildstuff.nix { inherit lib stdenv; };
|
||||
isCross = with stdenv; targetPlatform.config != hostPlatform.config;
|
||||
isCross = with stdenv; targetPlatform != hostPlatform;
|
||||
in
|
||||
|
||||
# We don't support multilib and cross at the same time
|
||||
|
||||
Reference in New Issue
Block a user