зеркало из 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
|
tooltool-downloads: public
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
- linux64-clang
|
|
||||||
- linux64-rust
|
|
||||||
- linux64-cbindgen
|
- linux64-cbindgen
|
||||||
- linux64-nasm
|
- linux64-nasm
|
||||||
- linux64-node
|
- linux64-node
|
||||||
|
@ -53,7 +51,9 @@ tidy:
|
||||||
./mach --log-no-times static-analysis check --outgoing --output $HOME/clang-tidy.json --format json
|
./mach --log-no-times static-analysis check --outgoing --output $HOME/clang-tidy.json --format json
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
|
- linux64-clang
|
||||||
- linux64-clang-tidy
|
- linux64-clang-tidy
|
||||||
|
- linux64-rust
|
||||||
worker:
|
worker:
|
||||||
artifacts:
|
artifacts:
|
||||||
- type: file
|
- type: file
|
||||||
|
@ -72,7 +72,9 @@ format:
|
||||||
./mach --log-no-times clang-format --outgoing --output $HOME/clang-format.diff --format diff
|
./mach --log-no-times clang-format --outgoing --output $HOME/clang-format.diff --format diff
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
|
- linux64-clang
|
||||||
- linux64-clang-tidy
|
- linux64-clang-tidy
|
||||||
|
- linux64-rust
|
||||||
worker:
|
worker:
|
||||||
artifacts:
|
artifacts:
|
||||||
- type: file
|
- 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
|
./mach --log-no-times static-analysis check --checks="-*,mozilla-civet-*" --outgoing --output $HOME/clang-tidy.json --format json
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
|
- linux64-clang
|
||||||
- linux64-clang-tidy-external
|
- linux64-clang-tidy-external
|
||||||
|
- linux64-rust
|
||||||
worker:
|
worker:
|
||||||
artifacts:
|
artifacts:
|
||||||
- type: file
|
- type: file
|
||||||
name: public/code-review/clang-tidy.json
|
name: public/code-review/clang-tidy.json
|
||||||
path: /builds/worker/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.
|
description: Run syntax test for non-unified build on C/C++ files.
|
||||||
treeherder:
|
treeherder:
|
||||||
symbol: cpp(non-unified)
|
symbol: cpp(non-unified-linux64)
|
||||||
tier: 1
|
tier: 1
|
||||||
attributes:
|
attributes:
|
||||||
code-review: false
|
code-review: false
|
||||||
|
@ -115,4 +119,28 @@ non-unified:
|
||||||
taskcluster/scripts/misc/source-test-clang-non-unified.sh
|
taskcluster/scripts/misc/source-test-clang-non-unified.sh
|
||||||
fetches:
|
fetches:
|
||||||
toolchain:
|
toolchain:
|
||||||
|
- linux64-clang
|
||||||
- linux64-clang-tidy
|
- 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
|
Загрузка…
Ссылка в новой задаче