2023-07-09 05:13:32 +00:00
|
|
|
{
|
|
|
|
"nodes": {
|
|
|
|
"crane": {
|
|
|
|
"inputs": {
|
|
|
|
"nixpkgs": [
|
|
|
|
"nixpkgs"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"locked": {
|
2024-05-03 19:23:26 +00:00
|
|
|
"lastModified": 1714536327,
|
|
|
|
"narHash": "sha256-zu4+LcygJwdyFHunTMeDFltBZ9+hoWvR/1A7IEy7ChA=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "ipetkov",
|
|
|
|
"repo": "crane",
|
2024-05-03 19:23:26 +00:00
|
|
|
"rev": "3124551aebd8db15d4560716d4f903bd44c64e4a",
|
2023-07-09 05:13:32 +00:00
|
|
|
"type": "github"
|
|
|
|
},
|
|
|
|
"original": {
|
|
|
|
"owner": "ipetkov",
|
|
|
|
"repo": "crane",
|
|
|
|
"type": "github"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"flake-compat": {
|
|
|
|
"flake": false,
|
|
|
|
"locked": {
|
2023-10-14 10:41:05 +00:00
|
|
|
"lastModified": 1696426674,
|
|
|
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "edolstra",
|
|
|
|
"repo": "flake-compat",
|
2023-10-14 10:41:05 +00:00
|
|
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
2023-07-09 05:13:32 +00:00
|
|
|
"type": "github"
|
|
|
|
},
|
|
|
|
"original": {
|
|
|
|
"owner": "edolstra",
|
|
|
|
"repo": "flake-compat",
|
|
|
|
"type": "github"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"flake-utils": {
|
|
|
|
"inputs": {
|
|
|
|
"systems": "systems"
|
|
|
|
},
|
|
|
|
"locked": {
|
2024-05-03 19:23:26 +00:00
|
|
|
"lastModified": 1710146030,
|
|
|
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "numtide",
|
|
|
|
"repo": "flake-utils",
|
2024-05-03 19:23:26 +00:00
|
|
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
2023-07-09 05:13:32 +00:00
|
|
|
"type": "github"
|
|
|
|
},
|
|
|
|
"original": {
|
|
|
|
"owner": "numtide",
|
|
|
|
"repo": "flake-utils",
|
|
|
|
"type": "github"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nixpkgs": {
|
|
|
|
"locked": {
|
2024-05-03 19:23:26 +00:00
|
|
|
"lastModified": 1714656196,
|
|
|
|
"narHash": "sha256-kjQkA98lMcsom6Gbhw8SYzmwrSo+2nruiTcTZp5jK7o=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "NixOS",
|
|
|
|
"repo": "nixpkgs",
|
2024-05-03 19:23:26 +00:00
|
|
|
"rev": "94035b482d181af0a0f8f77823a790b256b7c3cc",
|
2023-07-09 05:13:32 +00:00
|
|
|
"type": "github"
|
|
|
|
},
|
|
|
|
"original": {
|
|
|
|
"owner": "NixOS",
|
|
|
|
"ref": "nixpkgs-unstable",
|
|
|
|
"repo": "nixpkgs",
|
|
|
|
"type": "github"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"root": {
|
|
|
|
"inputs": {
|
|
|
|
"crane": "crane",
|
|
|
|
"flake-compat": "flake-compat",
|
|
|
|
"flake-utils": "flake-utils",
|
|
|
|
"nixpkgs": "nixpkgs",
|
build(flake): Replace self-packaged cranelift with rustup's
Motivation
==========
The self-packed one sort-of worked, but was rather flaky, while the one
from rustup obviously works, as it's an officially distributed part.
Running it
==========
Instead of the `cargo clif [build, etc.]` you now need to run (on nightly):
```
RUSTFLAGS="-Zcodegen-backend=cranelift" cargo build
```
Performance
===========
On my system I noticed, that a debug build takes around 20 sec *more*
with cranelift, compared to the default LLVM backend.
One possible hypothesis, for that could be, that cranelift does
not link via `mold` but instead still uses GNU's `gold`.
On the other hand, the performance decrease could also be caused
by the fact, that it's an early preview and some optimizations are
still lacking.
2023-10-31 17:07:24 +00:00
|
|
|
"rust-overlay": "rust-overlay"
|
2023-07-09 05:13:32 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"rust-overlay": {
|
|
|
|
"inputs": {
|
|
|
|
"flake-utils": [
|
|
|
|
"flake-utils"
|
|
|
|
],
|
|
|
|
"nixpkgs": [
|
|
|
|
"nixpkgs"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"locked": {
|
2024-05-03 19:23:26 +00:00
|
|
|
"lastModified": 1714702555,
|
|
|
|
"narHash": "sha256-/NoUbE5S5xpK1FU3nlHhQ/tL126+JcisXdzy3Ng4pDU=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "oxalica",
|
|
|
|
"repo": "rust-overlay",
|
2024-05-03 19:23:26 +00:00
|
|
|
"rev": "7f0e3ef7b7fbed78e12e5100851175d28af4b7c6",
|
2023-07-09 05:13:32 +00:00
|
|
|
"type": "github"
|
|
|
|
},
|
|
|
|
"original": {
|
|
|
|
"owner": "oxalica",
|
|
|
|
"repo": "rust-overlay",
|
|
|
|
"type": "github"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"systems": {
|
|
|
|
"locked": {
|
|
|
|
"lastModified": 1681028828,
|
|
|
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
|
|
"owner": "nix-systems",
|
|
|
|
"repo": "default",
|
|
|
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
|
|
"type": "github"
|
|
|
|
},
|
|
|
|
"original": {
|
|
|
|
"owner": "nix-systems",
|
|
|
|
"repo": "default",
|
|
|
|
"type": "github"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"root": "root",
|
|
|
|
"version": 7
|
|
|
|
}
|