aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-24 17:59:14 +0200
committerMarkus Reiter2016-09-24 19:28:26 +0200
commit6c6a4c9fa771930c882ab7819e027031fb33b018 (patch)
treedf927520ef9c8d9414d104e931c62169899ab224 /Library/Homebrew/extend/ENV
parent162bfee90f760a4a473894f6f3013d1b0665b3e9 (diff)
downloadbrew-6c6a4c9fa771930c882ab7819e027031fb33b018.tar.bz2
RuboCop: Style/AccessorMethodName
Diffstat (limited to 'Library/Homebrew/extend/ENV')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index b56aa56f3..27dc95d29 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -42,7 +42,7 @@ module Stdenv
end
# Os is the default Apple uses for all its stuff so let's trust them
- set_cflags "-Os #{SAFE_CFLAGS_FLAGS}"
+ define_cflags "-Os #{SAFE_CFLAGS_FLAGS}"
append "LDFLAGS", "-Wl,-headerpad_max_install_names"
@@ -136,12 +136,12 @@ module Stdenv
end
def minimal_optimization
- set_cflags "-Os #{SAFE_CFLAGS_FLAGS}"
+ define_cflags "-Os #{SAFE_CFLAGS_FLAGS}"
end
alias generic_minimal_optimization minimal_optimization
def no_optimization
- set_cflags SAFE_CFLAGS_FLAGS
+ define_cflags SAFE_CFLAGS_FLAGS
end
alias generic_no_optimization no_optimization
@@ -206,7 +206,7 @@ module Stdenv
end
# Convenience method to set all C compiler flags in one shot.
- def set_cflags(val)
+ def define_cflags(val)
CC_FLAG_VARS.each { |key| self[key] = val }
end