diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-06-09 07:10:51 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-06-09 07:20:18 +0100 |
commit | bf13eca852acddd5e44b5ad9b4ebc0629d612737 (patch) | |
tree | 6afcbf83eb66d754d43ac794a1fc502d9cfd45f7 /pkgs/applications/blockchains/polkadot | |
parent | ddc356c1f074bf2d5c86e890185e6854205252dd (diff) |
rustc: disable wasm32 if some gcc options are set
This is a temporary fix to get rustc building again with these configurations (which notably include the default aarch64-darwin one) without causing a stdenv rebuild. The real fix will be to avoid passing these options through the Clang wrapper when the target is overridden. It could be that there are packages that need wasm32-unknown-unknown beyond those I've marked as broken here — it's impossible to be sure without a full rebuild. But this should be most of them.
Diffstat (limited to 'pkgs/applications/blockchains/polkadot')
-rw-r--r-- | pkgs/applications/blockchains/polkadot/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/polkadot/default.nix b/pkgs/applications/blockchains/polkadot/default.nix index 0e71ddb7ba3bd..9690ade2947c9 100644 --- a/pkgs/applications/blockchains/polkadot/default.nix +++ b/pkgs/applications/blockchains/polkadot/default.nix @@ -92,5 +92,8 @@ rustPlatform.buildRustPackage rec { license = licenses.gpl3Only; maintainers = with maintainers; [ akru andresilva FlorianFranzen RaghavSood ]; platforms = platforms.unix; + # See comment about wasm32-unknown-unknown in rustc.nix. + broken = lib.any (a: lib.hasAttr a stdenv.hostPlatform.gcc) [ "cpu" "float-abi" "fpu" ] || + !stdenv.hostPlatform.gcc.thumb or true; }; } |