alpha
Login
or
Join now
tombl.dev
/
distro
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add broken compiler-rt
author
Thomas Stokes
date
1 year ago
(Jan 14, 2025, 12:46 AM +0800)
commit
5cc46154
5cc46154ec700414efbe8cb11ee5c68779656395
parent
311ce9f5
311ce9f5f8bbb0d7c56ff1cc3fe36893e4e476b6
+41
-2
3 changed files
Expand all
Collapse all
Unified
Split
all-packages.nix
host-packages.nix
packages
compiler-rt
package.nix
+1
-2
all-packages.nix
Reviewed
···
12
12
setup =
13
13
if args ? src then
14
14
''
15
15
-
mkdir src
15
15
+
cp -r ${args.src} src
16
16
cd src
17
17
-
cp -r ${args.src}/* .
18
17
chmod -R u+w .
19
18
''
20
19
else
+3
host-packages.nix
Reviewed
···
14
14
bc
15
15
bison
16
16
busybox
17
17
+
cmake
17
18
esbuild
18
19
findutils
19
20
flex
20
21
gnumake
22
22
+
ninja
21
23
perl
24
24
+
python3
22
25
rsync
23
26
wabt
24
27
;
+37
packages/compiler-rt/package.nix
Reviewed
···
1
1
+
{
2
2
+
inputs,
3
3
+
run,
4
4
+
5
5
+
clang,
6
6
+
cmake,
7
7
+
lld,
8
8
+
llvm,
9
9
+
ninja,
10
10
+
python3,
11
11
+
}:
12
12
+
13
13
+
run
14
14
+
{
15
15
+
name = "compiler-rt";
16
16
+
src = inputs.llvm;
17
17
+
path = [
18
18
+
clang
19
19
+
cmake
20
20
+
lld
21
21
+
llvm
22
22
+
ninja
23
23
+
python3
24
24
+
];
25
25
+
}
26
26
+
''
27
27
+
cd llvm
28
28
+
29
29
+
cmake -B build -G Ninja \
30
30
+
-DCMAKE_BUILD_TYPE=Release \
31
31
+
-DCMAKE_INSTALL_PREFIX=$out \
32
32
+
-DLLVM_ENABLE_RUNTIMES="compiler-rt" \
33
33
+
-DLLVM_TARGETS_TO_BUILD="WebAssembly" \
34
34
+
-DLLVM_USE_LINKER=lld
35
35
+
36
36
+
cmake --build build --target install
37
37
+
''