зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1acce175af
Коммит
7de925da29
|
@ -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=
|
||||
|
|
Загрузка…
Ссылка в новой задаче