Bug 820256 - Upgrade clang to 169730 in the 3.2 branch. r=rail.

Update the build scripts.
This commit is contained in:
Rafael Ávila de Espíndola 2012-12-11 21:44:15 -05:00
parent 8cb191fab1
commit 8490659853

View File

@ -3,7 +3,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
llvm_revision = "169139"
llvm_revision = "169730"
moz_version = "moz0"
##############################################
@ -32,12 +32,13 @@ def patch(patch, plevel, srcdir):
check_run(['patch', '-d', srcdir, '-p%s' % plevel, '-i', patch, '--fuzz=0',
'-s'])
def build_package(package_source_dir, package_build_dir, configure_args):
def build_package(package_source_dir, package_build_dir, configure_args,
make_args):
if not os.path.exists(package_build_dir):
os.mkdir(package_build_dir)
run_in(package_build_dir,
["%s/configure" % package_source_dir] + configure_args)
run_in(package_build_dir, ["make", "-j8"])
run_in(package_build_dir, ["make", "-j8"] + make_args)
run_in(package_build_dir, ["make", "install"])
def with_env(env, f):
@ -111,7 +112,8 @@ def build_one_stage_aux(stage_dir, is_stage_one):
"--disable-assertions",
"--prefix=%s" % inst_dir,
"--with-gcc-toolchain=/tools/gcc-4.5-0moz3"]
build_package(llvm_source_dir, build_dir, configure_opts)
build_package(llvm_source_dir, build_dir, configure_opts,
["CLANG_IS_PRODUCTION=1"])
if isDarwin:
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.7'