mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-20 20:20:26 +03:00
Merge #143715: nixos/malloc: fix scudo on aarch64-linux
This commit is contained in:
commit
24bb158cf0
@ -22,8 +22,15 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
scudo = {
|
scudo = let
|
||||||
libPath = "${pkgs.llvmPackages_latest.compiler-rt}/lib/linux/libclang_rt.scudo-x86_64.so";
|
platformMap = {
|
||||||
|
aarch64-linux = "aarch64";
|
||||||
|
x86_64-linux = "x86_64";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemPlatform = platformMap.${pkgs.stdenv.hostPlatform.system} or (throw "scudo not supported on ${pkgs.stdenv.hostPlatform.system}");
|
||||||
|
in {
|
||||||
|
libPath = "${pkgs.llvmPackages_latest.compiler-rt}/lib/linux/libclang_rt.scudo-${systemPlatform}.so";
|
||||||
description = ''
|
description = ''
|
||||||
A user-mode allocator based on LLVM Sanitizer’s CombinedAllocator,
|
A user-mode allocator based on LLVM Sanitizer’s CombinedAllocator,
|
||||||
which aims at providing additional mitigations against heap based
|
which aims at providing additional mitigations against heap based
|
||||||
|
Loading…
Reference in New Issue
Block a user