Merge pull request #320371 from techknowlogick/teleport-wasm-broken

teleport: resolve broken for non-wasm builds
This commit is contained in:
tomberek 2024-06-17 22:36:58 -04:00 committed by GitHub
commit 7e22655fd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,7 +182,10 @@ buildGoModule rec {
# which occupies more than 31 bits of address space.
broken = stdenv.hostPlatform.parsed.cpu.bits < 64 ||
# See comment about wasm32-unknown-unknown in rustc.nix.
lib.any (a: lib.hasAttr a stdenv.hostPlatform.gcc) [ "cpu" "float-abi" "fpu" ] ||
!stdenv.hostPlatform.gcc.thumb or true;
# version 15 is the first that starts to use wasm
(lib.versionAtLeast version "15") && (
lib.any (a: lib.hasAttr a stdenv.hostPlatform.gcc) [ "cpu" "float-abi" "fpu" ] ||
!stdenv.hostPlatform.gcc.thumb or true
);
};
}