mirror of
https://github.com/gosticks/brew.git
synced 2026-10-05 06:58:04 +00:00
Merge pull request #9325 from maxim-belkin/cpu-flags
cpu.rb: drop field name and a colon from flags
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user