Add gcc-tune script

This commit is contained in:
Greg Hellings
2025-10-02 23:06:58 -05:00
parent 11825210f9
commit 3046178f6b
3 changed files with 18 additions and 0 deletions
+1
View File
@@ -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
+1
View File
@@ -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 { };
+16
View File
@@ -0,0 +1,16 @@
{
writeShellApplication,
gcc,
gnugrep,
}:
writeShellApplication {
name = "gcc-tune";
runtimeInputs = [
gcc
gnugrep
];
text = ''
gcc -march=native -Q --help=target | grep 'mtune='
'';
}