From 4d83eb7d97c4b0f530eb82ad3cf6a1952d4183f4 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Thu, 4 Mar 2010 16:42:23 +0000 Subject: Build pyauto only if the architecture of python binary matches. BUG=none TEST=Building 32-bit pyauto on 64-bit Linux with a 32-bit sysroot works. Review URL: http://codereview.chromium.org/660443 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40630 0039d316-1c4b-4281-b951-d872f2087c98 --- build/common.gypi | 9 ++++++--- build/linux/python_arch.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100755 build/linux/python_arch.sh (limited to 'build') diff --git a/build/common.gypi b/build/common.gypi index 6c702ef..5f3223c2 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -91,6 +91,9 @@ # Set Neon compilation flags (only meaningful if armv7==1). 'arm_neon%': 1, + + # The system root for cross-compiles. Default: none. + 'sysroot%': '', }, # Define branding and buildtype on the basis of their settings within the @@ -107,6 +110,7 @@ 'python_ver%': '<(python_ver)', 'armv7%': '<(armv7)', 'arm_neon%': '<(arm_neon)', + 'sysroot%': '<(sysroot)', # The release channel that this build targets. This is used to restrict # channel-specific build options, like which installer packages to create. @@ -187,9 +191,6 @@ # but that doesn't work as we'd like. 'msvs_debug_link_incremental%': '2', - # The system root for cross-compiles. Default: none. - 'sysroot%': '', - # This is the location of the sandbox binary. Chrome looks for this before # running the zygote process. If found, and SUID, it will be used to # sandbox the zygote process and, thus, all renderer processes. @@ -219,6 +220,8 @@ # This will set gcc_version to XY if you are running gcc X.Y.*. # This is used to tweak build flags for gcc 4.4. 'gcc_version%': '