Freeze optimization flags hash rather than duping it
This commit is contained in:
parent
4498db7887
commit
dc454aad92
@ -1,6 +1,6 @@
|
|||||||
module LinuxCPUs
|
module LinuxCPUs
|
||||||
OPTIMIZATION_FLAGS = {}
|
OPTIMIZATION_FLAGS = {}.freeze
|
||||||
def optimization_flags; OPTIMIZATION_FLAGS.dup; end
|
def optimization_flags; OPTIMIZATION_FLAGS; end
|
||||||
|
|
||||||
def type
|
def type
|
||||||
@cpu_type ||= case `uname -m`
|
@cpu_type ||= case `uname -m`
|
||||||
|
|||||||
@ -7,8 +7,8 @@ module MacCPUs
|
|||||||
:g4 => '-mcpu=7400',
|
:g4 => '-mcpu=7400',
|
||||||
:g4e => '-mcpu=7450',
|
:g4e => '-mcpu=7450',
|
||||||
:g5 => '-mcpu=970'
|
:g5 => '-mcpu=970'
|
||||||
}
|
}.freeze
|
||||||
def optimization_flags; OPTIMIZATION_FLAGS.dup; end
|
def optimization_flags; OPTIMIZATION_FLAGS; end
|
||||||
|
|
||||||
# These methods use info spewed out by sysctl.
|
# These methods use info spewed out by sysctl.
|
||||||
# Look in <mach/machine.h> for decoding info.
|
# Look in <mach/machine.h> for decoding info.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user