Add gcc-tune script
This commit is contained in:
@@ -36,6 +36,7 @@ in
|
|||||||
efibootmgr
|
efibootmgr
|
||||||
findutils
|
findutils
|
||||||
file
|
file
|
||||||
|
gcc-tune
|
||||||
git
|
git
|
||||||
gnupatch
|
gnupatch
|
||||||
hms # My own home manager switcher
|
hms # My own home manager switcher
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ in
|
|||||||
aacs = c ./aacs.nix { };
|
aacs = c ./aacs.nix { };
|
||||||
brew = c ./homebrew.nix { };
|
brew = c ./homebrew.nix { };
|
||||||
create_ssl = c ./create_ssl.nix { };
|
create_ssl = c ./create_ssl.nix { };
|
||||||
|
gcc-tune = c ./gcc-tune.nix { };
|
||||||
gen-build = c ./gen-build { };
|
gen-build = c ./gen-build { };
|
||||||
hms = c ./hms { };
|
hms = c ./hms { };
|
||||||
inject-darwin = c ./inject-darwin.nix { };
|
inject-darwin = c ./inject-darwin.nix { };
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
gcc,
|
||||||
|
gnugrep,
|
||||||
|
}:
|
||||||
|
|
||||||
|
writeShellApplication {
|
||||||
|
name = "gcc-tune";
|
||||||
|
runtimeInputs = [
|
||||||
|
gcc
|
||||||
|
gnugrep
|
||||||
|
];
|
||||||
|
text = ''
|
||||||
|
gcc -march=native -Q --help=target | grep 'mtune='
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user