simplify gcc-native command

This commit is contained in:
Simon Gardling 2024-10-17 00:19:54 -04:00
parent ab5dd30454
commit 472018b6bc
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -48,7 +48,7 @@ in
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\"";
gcc-native = "${pkgs.gcc}/bin/gcc -Q --help=target -mtune=native -march=native | ${pkgs.gnugrep}/bin/grep -E '^\\s+\-(mtune|march)=' | ${pkgs.gnused}/bin/sed -E 's/\\s+//g'";
chess = "${pkgs.chess-tui}/bin/chess-tui -e ${pkgs.stockfish}/bin/stockfish";
};