aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2016-09-17 15:32:44 +0100
committerMike McQuaid2016-09-17 16:14:13 +0100
commit3982950e6106d45811a396a6a7478eeeee2817d7 (patch)
tree3bc809f42e4356c89f4ff3508bbf0e84cd5d4d41 /Library/Homebrew/extend
parent6693915399a5d9f1f09255c5008d2cc1209f7662 (diff)
downloadbrew-3982950e6106d45811a396a6a7478eeeee2817d7.tar.bz2
rubocop --auto-correct all hash-rocket usage.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb2
-rw-r--r--Library/Homebrew/extend/os/mac/hardware/cpu.rb10
2 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index fec0044a1..a9b2358b1 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -132,7 +132,7 @@ module Stdenv
replace_in_cflags(/-Xarch_#{Hardware::CPU.arch_32_bit} (-march=\S*)/, '\1')
# Clang mistakenly enables AES-NI on plain Nehalem
map = Hardware::CPU.optimization_flags
- map = map.merge(:nehalem => "-march=native -Xclang -target-feature -Xclang -aes")
+ map = map.merge(nehalem: "-march=native -Xclang -target-feature -Xclang -aes")
set_cpu_cflags "-march=native", map
end
diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb
index 8733c4933..0695d4a5b 100644
--- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb
+++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb
@@ -4,11 +4,11 @@ module Hardware
class CPU
class << self
PPC_OPTIMIZATION_FLAGS = {
- :g3 => "-mcpu=750",
- :g4 => "-mcpu=7400",
- :g4e => "-mcpu=7450",
- :g5 => "-mcpu=970",
- :g5_64 => "-mcpu=970 -arch ppc64",
+ g3: "-mcpu=750",
+ g4: "-mcpu=7400",
+ g4e: "-mcpu=7450",
+ g5: "-mcpu=970",
+ g5_64: "-mcpu=970 -arch ppc64",
}.freeze
def optimization_flags
OPTIMIZATION_FLAGS.merge(PPC_OPTIMIZATION_FLAGS)