diff options
-rwxr-xr-x | tool/leaked-globals | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/leaked-globals b/tool/leaked-globals index 0fb9e657c9..3f4621a35f 100755 --- a/tool/leaked-globals +++ b/tool/leaked-globals @@ -16,7 +16,9 @@ end config = ARGV.shift count = 0 col = Colorize.new -REPLACE = File.read(config).scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/) +config_code = File.read(config) +REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/) +REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code print "Checking leaked global symbols..." STDOUT.flush IO.foreach("|#{NM} -Pgp #{ARGV.join(' ')}") do |line| |