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
pull precompiled compiler-rt
author
Thomas Stokes
date
1 year ago
(Jan 15, 2025, 11:29 PM +0800)
commit
4cf31410
4cf31410453c20f1f04539b744a17eb5b8d962e4
parent
48ff3ab4
48ff3ab423a2876c10582de527e7da3b79909240
+22
-27
3 changed files
Expand all
Collapse all
Unified
Split
flake.lock
flake.nix
packages
compiler-rt
package.nix
+14
flake.lock
Reviewed
···
111
111
"type": "github"
112
112
}
113
113
},
114
114
+
"libclang_rt": {
115
115
+
"flake": false,
116
116
+
"locked": {
117
117
+
"lastModified": 1733968120,
118
118
+
"narHash": "sha256-qnWit8eyTV8zOwA4SE5z+lTKpmP1u4/+MOqkzEp+Cww=",
119
119
+
"type": "tarball",
120
120
+
"url": "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/libclang_rt.builtins-wasm32-wasi-25.0.tar.gz"
121
121
+
},
122
122
+
"original": {
123
123
+
"type": "tarball",
124
124
+
"url": "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/libclang_rt.builtins-wasm32-wasi-25.0.tar.gz"
125
125
+
}
126
126
+
},
114
127
"linux": {
115
128
"flake": false,
116
129
"locked": {
···
201
214
"busybox": "busybox",
202
215
"flake-parts": "flake-parts",
203
216
"git-hooks": "git-hooks",
217
217
+
"libclang_rt": "libclang_rt",
204
218
"linux": "linux",
205
219
"llvm": "llvm",
206
220
"make-shell": "make-shell",
+4
flake.nix
Reviewed
···
29
29
url = "github:tombl/busybox";
30
30
flake = false;
31
31
};
32
32
+
libclang_rt = {
33
33
+
url = "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/libclang_rt.builtins-wasm32-wasi-25.0.tar.gz";
34
34
+
flake = false;
35
35
+
};
32
36
linux = {
33
37
url = "github:tombl/linux/args";
34
38
flake = false;
+4
-27
packages/compiler-rt/package.nix
Reviewed
···
1
1
{
2
2
-
inputs,
3
2
run,
4
4
-
5
5
-
clang,
6
6
-
cmake,
7
7
-
lld,
8
8
-
llvm,
9
9
-
ninja,
10
10
-
python3,
3
3
+
inputs,
11
4
}:
12
5
13
6
run
14
7
{
15
8
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
-
];
9
9
+
src = inputs.libclang_rt;
25
10
}
26
11
''
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
12
12
+
mkdir -p $out
13
13
+
cp libclang_rt.builtins-wasm32.a $out/
37
14
''