fish: add gcc-native command

This commit is contained in:
Simon Gardling 2024-10-04 15:31:54 -04:00
parent 08d288b48e
commit e359ff0ffc
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -47,6 +47,8 @@ in
pbpaste = "${pkgs.wl-clipboard}/bin/wl-paste";
nix-cleanup = "doas nix-collect-garbage --delete-older-than 1d && doas nix-store --optimise && doas nix-store --gc";
gcc-native = "${pkgs.gcc}/bin/gcc -Q --help=target -mtune=native -march=native | ${pkgs.gnugrep}/bin/grep -E '(mtune|march)=' | ${pkgs.gnugrep}/bin/grep -v 'Known valid arguments' | ${pkgs.gnused}/bin/sed -E \"s/[[:space:]]+//g\"";
};
shellInit = ''