diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 16:56:28 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 16:56:28 +0000 |
commit | 9074068141edc76f83bd5f4f34017aa15a8bee68 (patch) | |
tree | 068e9c7764682f5660f0a587f7799de96da9b871 /tools/diagnose-me.py | |
parent | 5fd0532d1c5e2110aa9f114eac9c190e8af3dc20 (diff) | |
download | chromium_src-9074068141edc76f83bd5f4f34017aa15a8bee68.zip chromium_src-9074068141edc76f83bd5f4f34017aa15a8bee68.tar.gz chromium_src-9074068141edc76f83bd5f4f34017aa15a8bee68.tar.bz2 |
diagnose-me: Deweirdify gold checks.
/usr/bin/ld.gold pointing to gold seems harmless, so allow it.
Don't complain about the existence of /usr/local/gold, as users
might have gold there for non-chrome projects.
BUG=none
TEST=script passes on my machine
NOTRY=true
Review URL: http://codereview.chromium.org/9413010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122305 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/diagnose-me.py')
-rwxr-xr-x | tools/diagnose-me.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/diagnose-me.py b/tools/diagnose-me.py index 753ec52..16f1f8f 100755 --- a/tools/diagnose-me.py +++ b/tools/diagnose-me.py @@ -44,10 +44,10 @@ def CheckPathLd(): return None -@Check("/usr/local/gold is cleaned up") +@Check("/usr/bin/ld doesn't point to gold") def CheckLocalGold(): # Check /usr/bin/ld* symlinks. - for path in ('ld.bfd', 'ld.gold', 'ld'): + for path in ('ld.bfd', 'ld'): path = '/usr/bin/' + path try: target = os.readlink(path) @@ -64,11 +64,6 @@ def CheckLocalGold(): "/usr/bin/ld be the standard linker, which you likely\n" "renamed /usr/bin/ld.bfd or something like that.\n" % path) - if os.path.exists('/usr/local/gold'): - return ("You have a /usr/local/gold, which is no longer needed.\n" - "Check that you don't have any references to it in your\n" - "set up and then delete it.\n") - return None |