mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Optimizations] use CPU cache information in optimizePkg
This commit is contained in:
parent
cba4091589
commit
bd1e3fe6bf
1 changed files with 5 additions and 1 deletions
|
|
@ -11,6 +11,10 @@ let
|
|||
cpuCores ? generalCfg.cpu.threads,
|
||||
cpuArch ? generalCfg.cpu.arch,
|
||||
cpuTune ? generalCfg.cpu.tune,
|
||||
l1dCache ? generalCfg.cpu.caches.l1d,
|
||||
l1iCache ? generalCfg.cpu.caches.l1i,
|
||||
l1LineCache ? generalCfg.cpu.caches.cacheLine,
|
||||
lastLevelCache ? generalCfg.cpu.caches.lastLevel,
|
||||
extraCFlags ? cfg.extraCompileFlags,
|
||||
blacklist ? cfg.blacklist,
|
||||
ltoBlacklist ? cfg.lto.blacklist,
|
||||
|
|
@ -21,7 +25,7 @@ let
|
|||
...
|
||||
}@attrs: pkg:
|
||||
myLib.optimizations.optimizePkg pkg (cfg.defaultSettings // {
|
||||
inherit cpuCores cpuTune cpuArch extraCFlags blacklist ltoBlacklist overrideMap stdenv attributes;
|
||||
inherit cpuCores cpuTune cpuArch extraCFlags blacklist ltoBlacklist overrideMap stdenv attributes l1dCache l1iCache l1LineCache lastLevelCache;
|
||||
} // attrs);
|
||||
in {
|
||||
options.aviallon.optimizations = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue