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

Unified Diff: scripts/common.sh

Issue 9372099: Allow building OS X 10.7 binaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/
Patch Set: Created 8 years, 10 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 | « scripts/build-memcheck-for-chromium.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/common.sh
===================================================================
--- scripts/common.sh (revision 122817)
+++ scripts/common.sh (working copy)
@@ -15,6 +15,10 @@
uname -r | grep 10\.[0-9]\.[0-9] >/dev/null
}
+system_is_lion() {
+ uname -r | grep 11\.[0-9]\.[0-9] >/dev/null
+}
+
checkout_and_patch_valgrind_variant() {
# $1 = Valgrind-variant revision
# $2 = source dir
@@ -158,12 +162,25 @@
elif system_is_snow_leopard
then
build_valgrind "mac_10.6" "--build=amd64-darwin"
+ elif system_is_lion
+ then
+ build_valgrind "mac_10.7"
else
- echo "You have Darwin kernel different from 9.X.X or 10.X.X" >&2
+ echo "You have Darwin kernel different from 9.X.X--11.X.X" >&2
echo "Please, don't put the resulting binaries into Chromium SVN" >&2
build_valgrind "local"
fi
;;
+ "Darwin x86_64")
+ if system_is_lion
+ then
+ build_valgrind "mac_10.7"
+ else
+ echo "You have Darwin kernel different from 11.X.X" >&2
+ echo "Please, don't put the resulting binaries into Chromium SVN" >&2
+ build_valgrind "local"
+ fi
+ ;;
*)
build_valgrind "local"
;;
« no previous file with comments | « scripts/build-memcheck-for-chromium.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698