зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457483 Retrieve nm from environment for check_vanilla_allocations.py r=glandium
MozReview-Commit-ID: HIZpMk4Ierb --HG-- extra : rebase_source : 670da25b7e516e176f2eae116b58e5e62ccbbde7
This commit is contained in:
Родитель
45a99bf084
Коммит
c5a26d81ec
|
@ -42,6 +42,7 @@ import argparse
|
|||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import buildconfig
|
||||
|
||||
# The obvious way to implement this script is to search for occurrences of
|
||||
# malloc et al, succeed if none are found, and fail is some are found.
|
||||
|
@ -76,7 +77,8 @@ def main():
|
|||
# -u: show only undefined symbols
|
||||
# -C: demangle symbol names
|
||||
# -A: show an object filename for each undefined symbol
|
||||
cmd = ['nm', '-u', '-C', '-A', args.file]
|
||||
nm = buildconfig.substs.get('NM') or 'nm'
|
||||
cmd = [nm, '-u', '-C', '-A', args.file]
|
||||
lines = subprocess.check_output(cmd, universal_newlines=True,
|
||||
stderr=subprocess.PIPE).split('\n')
|
||||
|
||||
|
|
|
@ -1692,6 +1692,7 @@ AC_SUBST(AR)
|
|||
AC_SUBST(AR_FLAGS)
|
||||
AC_SUBST(AR_EXTRACT)
|
||||
AC_SUBST(AS)
|
||||
AC_SUBST(NM)
|
||||
AC_SUBST_LIST(ASFLAGS)
|
||||
AC_SUBST(AS_DASH_C_FLAG)
|
||||
AC_SUBST(RC)
|
||||
|
|
|
@ -4064,6 +4064,7 @@ AC_SUBST(AR)
|
|||
AC_SUBST(AR_FLAGS)
|
||||
AC_SUBST(AR_EXTRACT)
|
||||
AC_SUBST(AS)
|
||||
AC_SUBST(NM)
|
||||
AC_SUBST_LIST(ASFLAGS)
|
||||
AC_SUBST(AS_DASH_C_FLAG)
|
||||
AC_SUBST(RC)
|
||||
|
|
Загрузка…
Ссылка в новой задаче