Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Unified Diff: build/install-build-deps.sh

Issue 8036008: Linux: add a missing check for /usr/local/bin/gold/ld. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps.sh
===================================================================
--- build/install-build-deps.sh (revision 102629)
+++ build/install-build-deps.sh (working copy)
@@ -285,11 +285,14 @@
# Check the gold version first.
gold_up_to_date="1"
-case `/usr/local/gold/bin/ld --version` in
-*gold*2.2[1-9].*) ;;
-* )
- gold_up_to_date="0"
-esac
+if [ -x "/usr/local/gold/bin/ld" ]
+then
+ case `/usr/local/gold/bin/ld --version` in
+ *gold*2.2[1-9].*) ;;
+ * )
+ gold_up_to_date="0"
+ esac
+fi
# Then check and make sure ld.bfd exists.
if [ "$gold_up_to_date" = "1" ] && [ ! -x "/usr/local/gold/bin/ld.bfd" ]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698