Bug 1203393 - Part 2: Package clang as an xz archive; r=glandium
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 16 Sep 2015 21:00:34 -0400
changeset 263715 cf0e769b6e9fbfe7e9327b94d2702ce2847e82ff
parent 263714 ea6741b10b19b0dcdd65cda115b2e66360ea50d2
child 263716 cdfbb524ec7df2cbbd8b8ed16dda14dce7345399
push id65399
push usereakhgari@mozilla.com
push dateTue, 22 Sep 2015 12:41:31 +0000
treeherdermozilla-inbound@2fa98a89a2ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1203393
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1203393 - Part 2: Package clang as an xz archive; r=glandium
build/unix/build-clang/build-clang.py
--- a/build/unix/build-clang/build-clang.py
+++ b/build/unix/build-clang/build-clang.py
@@ -52,17 +52,17 @@ def updated_env(env):
     os.environ.update(env)
     yield
     os.environ.clear()
     os.environ.update(old_env)
 
 
 def build_tar_package(tar, name, base, directory):
     name = os.path.realpath(name)
-    run_in(base, [tar, "-cjf", name, directory])
+    run_in(base, [tar, "-cJf", name, directory])
 
 
 def copy_dir_contents(src, dest):
     for f in glob.glob("%s/*" % src):
         try:
             destname = "%s/%s" % (dest, os.path.basename(f))
             shutil.copytree(f, destname)
         except OSError as e:
@@ -257,9 +257,9 @@ if __name__ == "__main__":
 
     if not is_darwin():
         stage2_inst_dir = stage2_dir + '/clang'
         build_and_use_libgcc(
             {"CC": cc + " %s" % extra_cflags,
              "CXX": cxx + " %s" % extra_cxxflags},
             stage2_inst_dir)
 
-    build_tar_package("tar", "clang.tar.bz2", stage2_dir, "clang")
+    build_tar_package("tar", "clang.tar.xz", stage2_dir, "clang")