From 52334b6550eb2f46dc313c955fba8f7d342a3dd2 Mon Sep 17 00:00:00 2001 From: Cory Marshall <16811115+corrmaan@users.noreply.github.com> Date: Wed, 10 Jul 2019 10:29:57 -0300 Subject: [PATCH] Fix gcc-9 error This error seems to have popped up for me when using this with gcc-9: ``` gcc: error: valid: No such file or directory ``` Increasing the number of spaces after `=` in the `egrep` pattern of `get_arch()` seemed to solve the issue. --- distccflags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distccflags b/distccflags index 4bbbaec..c9f60cf 100755 --- a/distccflags +++ b/distccflags @@ -59,7 +59,7 @@ fi get_arch() { $CC -Q --help=target "$@" | - egrep '\s*-march=' | + egrep '\s*-march= ' | awk '{print $2}' }