Skip to content

Commit

Permalink
Bug 1406140 - Simplify a bit the code to have a single call to build_…
Browse files Browse the repository at this point in the history
…tar_package r=andi

MozReview-Commit-ID: 9yGw8bJhQwR

--HG--
extra : rebase_source : e3ed5144a8bbdd6e3bba27d97decd6935904e3cb
  • Loading branch information
sylvestre committed Oct 5, 2017
1 parent 00a6c90 commit fbc1ec3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build/build-clang/build-clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,5 @@ def checkout_or_update(repo, checkout_dir):
prune_final_dir_for_clang_tidy(os.path.join(final_stage_dir, "clang"))
package_name = "clang-tidy"

if is_darwin() or is_windows():
build_tar_package("tar", package_name + ".tar.bz2", final_stage_dir, "clang")
else:
build_tar_package("tar", package_name + ".tar.xz", final_stage_dir, "clang")
ext = "bz2" if is_darwin() or is_windows() else "xz"
build_tar_package("tar", "%.tar.%s" % (package_name, ext), final_stage_dir, "clang")

0 comments on commit fbc1ec3

Please sign in to comment.