treewide platform checks: abort -> throw
They aren't meant to be critical (uncatchable) errors. Tested with nix-env + checkMeta: [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
This commit is contained in:
@@ -4,7 +4,7 @@ let
|
||||
ld32 =
|
||||
if stdenv.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
|
||||
else if stdenv.system == "x86_64-linux" then "${stdenv.cc}/nix-support/dynamic-linker-m32"
|
||||
else abort "Unsupported architecture";
|
||||
else throw "Unsupported system ${stdenv.system}";
|
||||
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
|
||||
|
||||
mkLdPath = ps: lib.makeLibraryPath (with ps; [ qt4 dbus alsaLib ]);
|
||||
|
||||
Reference in New Issue
Block a user