diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-03-31 00:05:41 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-03-31 00:10:13 -0700 |
| commit | d2686c751a45b18dd039dbca86c745dfa2c39f6b (patch) | |
| tree | f8dc4a69ec29e186829c6d21c474c6030ace3daf | |
| parent | 84e9c0692ab7b42fb3b25ab602a766c0e74a3c71 (diff) | |
| download | rust-d2686c751a45b18dd039dbca86c745dfa2c39f6b.tar.gz rust-d2686c751a45b18dd039dbca86c745dfa2c39f6b.zip | |
mk: Workaround distcheck failure on mac. #13224
Mac can't actually build our source tarballs because it's `tar` command doesn't support the --exclude-vcs flag. This is just a workaround to make our mac nightlies work (we get our source tarballs from the linux bot).
| -rw-r--r-- | mk/dist.mk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/mk/dist.mk b/mk/dist.mk index 2dbdf8064b7..8679aeed04f 100644 --- a/mk/dist.mk +++ b/mk/dist.mk @@ -79,6 +79,7 @@ $(PKG_TAR): $(PKG_FILES) --exclude=*/llvm/test/*/*/*.td \ --exclude=*/llvm/test/*/*/*.s \ -c $(UNROOTED_PKG_FILES) | tar -x -C tmp/dist/$(PKG_NAME) + @$(call E, making $@) $(Q)tar -czf $(PKG_TAR) -C tmp/dist $(PKG_NAME) $(Q)rm -Rf tmp/dist/$(PKG_NAME) @@ -282,9 +283,19 @@ distcheck: distcheck-win else -dist: dist-tar-src dist-osx dist-tar-bins dist-docs +# FIXME #13224: On OS X don't produce tarballs simply because --exclude-vcs don't work. +# This is a huge hack because I just don't have time to figure out another solution. +ifeq ($(CFG_OSTYPE), apple-darwin) +MAYBE_DIST_TAR_SRC= +MAYBE_DISTCHECK_TAR_SRC= +else +MAYBE_DIST_TAR_SRC=dist-tar-src +MAYBE_DISTCHECK_TAR_SRC=distcheck-tar-src +endif + +dist: $(MAYBE_DIST_TAR_SRC) dist-osx dist-tar-bins dist-docs -distcheck: distcheck-tar-src distcheck-osx distcheck-tar-bins distcheck-docs +distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-tar-bins distcheck-docs $(Q)rm -Rf tmp/distcheck @echo @echo ----------------------------------------------- |
