Bug 1432475 - Enable rust analysis on mozsearch jobs and save the output to a build artifact. r=glandium

This requires unlocking the unstable features in the rust compiler
by using RUSTC_BOOTSTRAP=1

MozReview-Commit-ID: 1uUG1Ekp1YH

--HG--
extra : rebase_source : d8a5aa5d13f3ee055de8a544b0d5ca8af0aab751
This commit is contained in:
Kartikaya Gupta 2018-01-30 16:32:01 -05:00
Родитель 1acce175af
Коммит 7de925da29
4 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -13,6 +13,10 @@ ac_add_options --enable-dmd
export CC="$topsrcdir/clang/bin/clang"
export CXX="$topsrcdir/clang/bin/clang++"
# Save rust analysis (this requires unlocking the unstable features)
export RUSTC_BOOTSTRAP=1
export RUSTFLAGS="-Zsave-analysis"
# Add the static checker
ac_add_options --enable-clang-plugin
ac_add_options --enable-mozsearch-plugin

Просмотреть файл

@ -88,6 +88,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
# Mozharness naming
MOZHARNESS_PACKAGE = mozharness.zip

Просмотреть файл

@ -76,10 +76,14 @@ ifdef MOZ_CODE_COVERAGE
--output-file='$(DIST)/$(PKG_PATH)$(CODE_COVERAGE_ARCHIVE_BASENAME).zip'
endif
ifdef ENABLE_MOZSEARCH_PLUGIN
@echo 'Generating mozsearch tarball...'
@echo 'Generating mozsearch index tarball...'
$(RM) $(MOZSEARCH_ARCHIVE_BASENAME).zip
cd $(topobjdir)/mozsearch_index && \
zip -r5D '$(ABS_DIST)/$(PKG_PATH)$(MOZSEARCH_ARCHIVE_BASENAME).zip' .
@echo 'Generating mozsearch rust-analysis tarball...'
$(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'
endif
ifeq (Darwin, $(OS_ARCH))
ifdef MOZ_ASAN

Просмотреть файл

@ -429,6 +429,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)
endif
SIGN_CHECKSUM_CMD=