mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
ci: make the sanitize build fast again (#2280)
sccache doesn't work for cache debug builds at the moment, because it doesn't support the `-Xclang -fdebug-compilation-dir` flag that has been added by the most recent V8 upgrade. This patch should make the asan/lsan job on Travis CI fast again.
This commit is contained in:
parent
da428b52a1
commit
52830414da
1 changed files with 6 additions and 1 deletions
|
@ -124,13 +124,18 @@ jobs:
|
|||
# tests. We want to detect leaks during the build process as well as
|
||||
# when executing the tests. So set the ASAN_OPTIONS env var before
|
||||
# build.py is run.
|
||||
- name: "lsan debug linux"
|
||||
- name: "asan/lsan linux"
|
||||
os: linux
|
||||
script:
|
||||
- ./tools/lint.py
|
||||
- ./tools/test_format.py
|
||||
- echo is_asan=true >> target/debug/args.gn
|
||||
- echo is_lsan=true >> target/debug/args.gn
|
||||
# TODO(ry) sccache doesn't support "-Xclang -fdebug-compilation-dir"
|
||||
# Which is enabled for ASAN builds if symbol_level != 0.
|
||||
# https://cs.chromium.org/chromium/src/build/config/compiler/BUILD.gn?l=1087&rcl=573da77f569b41e23527f2952938f492678ab4bb
|
||||
# Ideally we can remove this constraint in the future.
|
||||
- echo symbol_level=0 >> target/debug/args.gn
|
||||
# Call gn gen again to make sure new args are recognized.
|
||||
- third_party/depot_tools/gn gen target/debug
|
||||
- export ASAN_OPTIONS=detect_leaks=1
|
||||
|
|
Loading…
Reference in a new issue