From 8738ad324e5a46c0ff088338995f57f6da152e65 Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Fri, 27 Nov 2020 17:00:24 -0600 Subject: [PATCH] cpu.rb: clean up the list of CPU instructions Co-authored-by: Shaun Jackman Co-authored-by: Markus Reiter --- Library/Homebrew/extend/os/linux/hardware/cpu.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/os/linux/hardware/cpu.rb b/Library/Homebrew/extend/os/linux/hardware/cpu.rb index 0ef9c695dc..9f4413ed98 100644 --- a/Library/Homebrew/extend/os/linux/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/linux/hardware/cpu.rb @@ -69,8 +69,9 @@ module Hardware end end + # Supported CPU instructions def flags - @flags ||= cpuinfo[/^(flags|Features).*/, 0]&.split + @flags ||= cpuinfo[/^(?:flags|Features)\s*: (.*)/, 1]&.split @flags ||= [] end