зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1694161 - run non-unified sanity targeting MacOS. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D105977
This commit is contained in:
Родитель
e2b7c9c6b0
Коммит
4594e6db8f
|
@ -23,8 +23,6 @@ job-defaults:
|
|||
tooltool-downloads: public
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-clang
|
||||
- linux64-rust
|
||||
- linux64-cbindgen
|
||||
- linux64-nasm
|
||||
- linux64-node
|
||||
|
@ -53,7 +51,9 @@ tidy:
|
|||
./mach --log-no-times static-analysis check --outgoing --output $HOME/clang-tidy.json --format json
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-clang
|
||||
- linux64-clang-tidy
|
||||
- linux64-rust
|
||||
worker:
|
||||
artifacts:
|
||||
- type: file
|
||||
|
@ -72,7 +72,9 @@ format:
|
|||
./mach --log-no-times clang-format --outgoing --output $HOME/clang-format.diff --format diff
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-clang
|
||||
- linux64-clang-tidy
|
||||
- linux64-rust
|
||||
worker:
|
||||
artifacts:
|
||||
- type: file
|
||||
|
@ -93,17 +95,19 @@ external:
|
|||
./mach --log-no-times static-analysis check --checks="-*,mozilla-civet-*" --outgoing --output $HOME/clang-tidy.json --format json
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-clang
|
||||
- linux64-clang-tidy-external
|
||||
- linux64-rust
|
||||
worker:
|
||||
artifacts:
|
||||
- type: file
|
||||
name: public/code-review/clang-tidy.json
|
||||
path: /builds/worker/clang-tidy.json
|
||||
|
||||
non-unified:
|
||||
linux64-non-unified:
|
||||
description: Run syntax test for non-unified build on C/C++ files.
|
||||
treeherder:
|
||||
symbol: cpp(non-unified)
|
||||
symbol: cpp(non-unified-linux64)
|
||||
tier: 1
|
||||
attributes:
|
||||
code-review: false
|
||||
|
@ -115,4 +119,28 @@ non-unified:
|
|||
taskcluster/scripts/misc/source-test-clang-non-unified.sh
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-clang
|
||||
- linux64-clang-tidy
|
||||
- linux64-rust
|
||||
|
||||
macosx64-non-unified:
|
||||
description: Run syntax test for non-unified build on C/C++ files.
|
||||
treeherder:
|
||||
symbol: cpp(non-unified-macos64)
|
||||
tier: 1
|
||||
attributes:
|
||||
code-review: false
|
||||
run-on-projects: ['integration']
|
||||
run:
|
||||
cwd: '{checkout}'
|
||||
command: >-
|
||||
source taskcluster/scripts/misc/source-test-clang-setup-macos64.sh &&
|
||||
taskcluster/scripts/misc/source-test-clang-non-unified.sh
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-llvm-dsymutil
|
||||
- linux64-rust-macos
|
||||
- linux64-rust-size
|
||||
- linux64-cctools-port
|
||||
- linux64-clang-macosx-cross
|
||||
- macosx64-sdk-10.12
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
source $HOME/checkouts/gecko/taskcluster/scripts/misc/source-test-common.sh
|
||||
|
||||
# Add clang-tidy to PATH
|
||||
export PATH=$MOZ_FETCHES_DIR/clang-tidy/bin:$PATH
|
||||
export PATH=$MOZ_FETCHES_DIR/cctools/bin:$MOZ_FETCHES_DIR/llvm-dsymutil/bin:$PATH
|
||||
|
||||
# Use toolchain clang
|
||||
export LD_LIBRARY_PATH=$MOZ_FETCHES_DIR/clang/lib
|
||||
|
||||
# Write custom mozconfig
|
||||
export MOZCONFIG=$GECKO_PATH/mozconfig
|
||||
|
||||
# Add to mozconfig all the appropriate options
|
||||
cat <<EOT >> $MOZCONFIG
|
||||
# Enable debug mode
|
||||
ac_add_options --enable-debug
|
||||
# Enable GC zeal, a testing and debugging feature that helps find GC-related bugs in JSAPI applications.
|
||||
ac_add_options --enable-gczeal
|
||||
# Do not treat warnings as errors
|
||||
ac_add_options --disable-warnings-as-errors
|
||||
|
||||
export MACOS_SDK_DIR=$MOZ_FETCHES_DIR/MacOSX10.12.sdk
|
||||
|
||||
export DSYMUTIL=$GECKO_PATH/build/macosx/llvm-dsymutil
|
||||
mk_add_options "export REAL_DSYMUTIL=$MOZ_FETCHES_DIR/llvm-dsymutil/bin/dsymutil"
|
||||
|
||||
ac_add_options --target=x86_64-apple-darwin
|
||||
|
||||
EOT
|
||||
|
||||
# Mach lookup clang-tidy in clang-tools
|
||||
mkdir -p $MOZBUILD_STATE_PATH/clang-tools
|
||||
ln -s $MOZ_FETCHES_DIR/clang-tidy $MOZBUILD_STATE_PATH/clang-tools/clang-tidy
|
Загрузка…
Ссылка в новой задаче