2023-07-09 05:13:32 +00:00
|
|
|
{
|
|
|
|
"nodes": {
|
|
|
|
"crane": {
|
|
|
|
"inputs": {
|
|
|
|
"nixpkgs": [
|
|
|
|
"nixpkgs"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"locked": {
|
2023-11-07 19:47:49 +00:00
|
|
|
"lastModified": 1699218802,
|
|
|
|
"narHash": "sha256-5l0W4Q7z7A4BCstaF5JuBqXOVrZ3Vqst5+hUnP7EdUc=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "ipetkov",
|
|
|
|
"repo": "crane",
|
2023-11-07 19:47:49 +00:00
|
|
|
"rev": "2d6c2aaff5a05e443eb15efddc21f9c73720340c",
|
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": {
|
2023-09-17 14:41:55 +00:00
|
|
|
"lastModified": 1694529238,
|
|
|
|
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "numtide",
|
|
|
|
"repo": "flake-utils",
|
2023-09-17 14:41:55 +00:00
|
|
|
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
2023-07-09 05:13:32 +00:00
|
|
|
"type": "github"
|
|
|
|
},
|
|
|
|
"original": {
|
|
|
|
"owner": "numtide",
|
|
|
|
"repo": "flake-utils",
|
|
|
|
"type": "github"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nixpkgs": {
|
|
|
|
"locked": {
|
2023-11-07 19:47:49 +00:00
|
|
|
"lastModified": 1699343069,
|
|
|
|
"narHash": "sha256-s7BBhyLA6MI6FuJgs4F/SgpntHBzz40/qV0xLPW6A1Q=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "NixOS",
|
|
|
|
"repo": "nixpkgs",
|
2023-11-07 19:47:49 +00:00
|
|
|
"rev": "ec750fd01963ab6b20ee1f0cb488754e8036d89d",
|
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": {
|
2023-11-07 19:47:49 +00:00
|
|
|
"lastModified": 1699323235,
|
|
|
|
"narHash": "sha256-ZFRItRv0dDSzsfpqSjj9qWM/SA1kRrOk6R04qhBZuxM=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "oxalica",
|
|
|
|
"repo": "rust-overlay",
|
2023-11-07 19:47:49 +00:00
|
|
|
"rev": "8a9d6f544c08ee898c7f3761cc9587be7565db5e",
|
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
|
|
|
|
}
|