2023-07-09 05:13:32 +00:00
|
|
|
{
|
|
|
|
"nodes": {
|
|
|
|
"crane": {
|
|
|
|
"inputs": {
|
|
|
|
"nixpkgs": [
|
|
|
|
"nixpkgs"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"locked": {
|
2023-10-31 17:04:18 +00:00
|
|
|
"lastModified": 1698166613,
|
|
|
|
"narHash": "sha256-y4rdN4flxRiROqNi1waMYIZj/Fs7L2OrszFk/1ry9vU=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "ipetkov",
|
|
|
|
"repo": "crane",
|
2023-10-31 17:04:18 +00:00
|
|
|
"rev": "b7db46f0f1751f7b1d1911f6be7daf568ad5bc65",
|
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-10-31 17:04:18 +00:00
|
|
|
"lastModified": 1698553279,
|
|
|
|
"narHash": "sha256-T/9P8yBSLcqo/v+FTOBK+0rjzjPMctVymZydbvR/Fak=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "NixOS",
|
|
|
|
"repo": "nixpkgs",
|
2023-10-31 17:04:18 +00:00
|
|
|
"rev": "90e85bc7c1a6fc0760a94ace129d3a1c61c3d035",
|
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-10-31 17:04:18 +00:00
|
|
|
"lastModified": 1698726852,
|
|
|
|
"narHash": "sha256-V1S4TTzg++GzPc96i/yy4jib+7/xU0LXHcggm9MllMM=",
|
2023-07-09 05:13:32 +00:00
|
|
|
"owner": "oxalica",
|
|
|
|
"repo": "rust-overlay",
|
2023-10-31 17:04:18 +00:00
|
|
|
"rev": "ec19bd20af08f3b004089cc12ab54c823ed899b7",
|
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
|
|
|
|
}
|