From e95d575f7f039510c3b53112e6c8c202b2598549 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Tue, 14 May 2019 17:31:05 +0000 Subject: [PATCH] Bug 1545968 - Produce artifacts with the rust stdlib src and analysis data for consumption by searchfox. r=glandium Differential Revision: https://phabricator.services.mozilla.com/D28283 --HG-- extra : moz-landing-system : lando --- toolkit/mozapps/installer/package-name.mk | 1 + toolkit/mozapps/installer/packager.mk | 6 ++++++ toolkit/mozapps/installer/upload-files.mk | 1 + 3 files changed, 8 insertions(+) diff --git a/toolkit/mozapps/installer/package-name.mk b/toolkit/mozapps/installer/package-name.mk index 0ec85ea1075f..009ebc9376f1 100644 --- a/toolkit/mozapps/installer/package-name.mk +++ b/toolkit/mozapps/installer/package-name.mk @@ -87,6 +87,7 @@ CODE_COVERAGE_ARCHIVE_BASENAME = $(PKG_BASENAME).code-coverage-gcno # Mozsearch package naming MOZSEARCH_ARCHIVE_BASENAME = $(PKG_BASENAME).mozsearch-index MOZSEARCH_RUST_ANALYSIS_BASENAME = $(PKG_BASENAME).mozsearch-rust +MOZSEARCH_RUST_STDLIB_BASENAME = $(PKG_BASENAME).mozsearch-rust-stdlib MOZSEARCH_INCLUDEMAP_BASENAME = $(PKG_BASENAME).mozsearch-distinclude # Mozharness naming diff --git a/toolkit/mozapps/installer/packager.mk b/toolkit/mozapps/installer/packager.mk index 102cc29a1721..b659a0e0b4ad 100644 --- a/toolkit/mozapps/installer/packager.mk +++ b/toolkit/mozapps/installer/packager.mk @@ -78,6 +78,12 @@ ifdef ENABLE_MOZSEARCH_PLUGIN $(RM) $(MOZSEARCH_RUST_ANALYSIS_BASENAME).zip cd $(topobjdir)/ && \ find . -type d -name save-analysis | xargs zip -r5D '$(ABS_DIST)/$(PKG_PATH)$(MOZSEARCH_RUST_ANALYSIS_BASENAME).zip' + @echo 'Generating mozsearch rust stdlib analysis tarball ($(RUST_TARGET))...' + $(RM) $(MOZSEARCH_RUST_STDLIB_BASENAME).zip + cd $(topsrcdir)/rustc/lib && \ + zip -r5D '$(ABS_DIST)/$(PKG_PATH)$(MOZSEARCH_RUST_STDLIB_BASENAME).zip' \ + rustlib/$(RUST_TARGET)/analysis/ rustlib/src/ + @echo 'Generating mozsearch distinclude map...' cd $(topobjdir)/ && cp _build_manifests/install/dist_include '$(ABS_DIST)/$(PKG_PATH)$(MOZSEARCH_INCLUDEMAP_BASENAME).map' endif ifeq (Darwin, $(OS_ARCH)) diff --git a/toolkit/mozapps/installer/upload-files.mk b/toolkit/mozapps/installer/upload-files.mk index 59ea89ff40d6..1d6c073316d5 100644 --- a/toolkit/mozapps/installer/upload-files.mk +++ b/toolkit/mozapps/installer/upload-files.mk @@ -401,6 +401,7 @@ endif ifdef ENABLE_MOZSEARCH_PLUGIN UPLOAD_FILES += $(call QUOTED_WILDCARD,$(DIST)/$(PKG_PATH)$(MOZSEARCH_ARCHIVE_BASENAME).zip) UPLOAD_FILES += $(call QUOTED_WILDCARD,$(DIST)/$(PKG_PATH)$(MOZSEARCH_RUST_ANALYSIS_BASENAME).zip) + UPLOAD_FILES += $(call QUOTED_WILDCARD,$(DIST)/$(PKG_PATH)$(MOZSEARCH_RUST_STDLIB_BASENAME).zip) UPLOAD_FILES += $(call QUOTED_WILDCARD,$(DIST)/$(PKG_PATH)$(MOZSEARCH_INCLUDEMAP_BASENAME).map) endif