On linux-next, using make CC=cgcc fails with cgcc: unknown assembler invoked scripts/Kconfig.include:50: Sorry, this assembler is not supported. cgcc is being invoked with cgcc -Wa,--version -c -x assembler /dev/null -o /dev/null And dieing when the '-x c' is not matched. Add a check for -x assember. Signed-off-by: Tom Rix <trix@xxxxxxxxxx> --- cgcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgcc b/cgcc index 9c78ee63..dc5cb624 100755 --- a/cgcc +++ b/cgcc @@ -42,10 +42,10 @@ while (@ARGV) { $nargs = 1; } - # Ignore the extension if '-x c' is given. + # Ignore the extension if '-x c' or '-x assembler' is given. if ($_ eq '-x') { die ("$0: missing argument for $_") if !@ARGV; - die ("$0: invalid argument for $_") if $ARGV[0] ne 'c'; + die ("$0: invalid argument for $_") if $ARGV[0] ne 'c' and $ARGV[0] ne 'assembler'; $do_check = 1; $nargs = 1; } -- 2.27.0