blob: 56f7afce721db8d71dc474985fd523e43bc05d84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
pkgs: attrs: with pkgs; with attrs; rec {
version = "15.0.5";
src = let
pname = "compiler-rt";
source = fetchFromGitHub {
owner = "llvm";
repo = "llvm-project";
rev = "llvmorg-${version}";
hash = "sha256-lYwtqpodBLPgA+BpdesZ5JetcLccpBKSrE1Pqyj+Wvw=";
};
in (runCommand "${pname}-src-${version}" {} (''
mkdir -p "$out"
cp -r ${source}/cmake "$out"
cp -r ${source}/${pname} "$out"
'')).overrideAttrs(attrs: rec {
urls = source.urls;
});
sourceRoot = "compiler-rt-src-${version}/compiler-rt";
patches = [
./cmake-afl.patch
./no-fuchsia.patch
];
NIX_CFLAGS_COMPILE = [ ]; # Remove SCUDO_DEFAULT_OPTIONS.
}
|