Merge pull request #5500 from claui/fix-cop-set-writer
Disable cop for #set_cpu_flags, #set_cpu_cflags
This commit is contained in:
commit
5d602a3cdc
@ -198,7 +198,7 @@ module Stdenv
|
|||||||
# Sets architecture-specific flags for every environment variable
|
# Sets architecture-specific flags for every environment variable
|
||||||
# given in the list `flags`.
|
# given in the list `flags`.
|
||||||
# @private
|
# @private
|
||||||
def set_cpu_flags(flags, map = Hardware::CPU.optimization_flags)
|
def set_cpu_flags(flags, map = Hardware::CPU.optimization_flags) # rubocop:disable Naming/AccessorMethodName
|
||||||
cflags =~ /(-Xarch_#{Hardware::CPU.arch_32_bit} )-march=/
|
cflags =~ /(-Xarch_#{Hardware::CPU.arch_32_bit} )-march=/
|
||||||
xarch = Regexp.last_match(1).to_s
|
xarch = Regexp.last_match(1).to_s
|
||||||
remove flags, /(-Xarch_#{Hardware::CPU.arch_32_bit} )?-march=\S*/
|
remove flags, /(-Xarch_#{Hardware::CPU.arch_32_bit} )?-march=\S*/
|
||||||
@ -213,7 +213,7 @@ module Stdenv
|
|||||||
def x11; end
|
def x11; end
|
||||||
|
|
||||||
# @private
|
# @private
|
||||||
def set_cpu_cflags(map = Hardware::CPU.optimization_flags)
|
def set_cpu_cflags(map = Hardware::CPU.optimization_flags) # rubocop:disable Naming/AccessorMethodName
|
||||||
set_cpu_flags CC_FLAG_VARS, map
|
set_cpu_flags CC_FLAG_VARS, map
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user