mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 12:39:48 -05:00
audit: fix go audit problems.
This commit is contained in:
1 parent
11809e8ca3
commit
31526f154a
1 file changed
+4
-2
@@ -399,8 +399,10 @@ class FormulaAuditor
|
||||
end
|
||||
|
||||
# Avoid hard-coding compilers
|
||||
if line =~ %r{(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?(gcc|llvm-gcc|clang)['" ]}
|
||||
problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{$3}\""
|
||||
unless f.name == 'go' # Go needs to set CC for cgo support.
|
||||
if line =~ %r{(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?(gcc|llvm-gcc|clang)['" ]}
|
||||
problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{$3}\""
|
||||
end
|
||||
end
|
||||
|
||||
if line =~ %r{(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?((g|llvm-g|clang)\+\+)['" ]}
|
||||
|
||||
Reference in new issue
Block a user