Skip to content

Commit

Permalink
Merge pull request RobotLocomotion#6088 from jamiesnape/bazel-valgrin…
Browse files Browse the repository at this point in the history
…d-o1

Build with -O1 for valgrind memcheck configuration
  • Loading branch information
jamiesnape authored May 13, 2017
2 parents 20e786a + c316bef commit 77ae6f9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/bazel.rc
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,12 @@ test:ubsan --test_lang_filters=-py

### Memcheck build. ###
build:memcheck --copt -g
build:memcheck --run_under=//tools:valgrind
build:memcheck --copt -O1
test:memcheck --run_under=//tools:valgrind
test:memcheck --test_lang_filters=-sh,-py
# Slowdown factor can range from 5-100.
# See http://valgrind.org/info/about.html
test:memcheck --test_timeout=300,1500,5400,18000
test:memcheck --test_timeout=600,3000,10800,36000 # 10x

# Fast memcheck.
#
Expand All @@ -190,8 +191,8 @@ test:memcheck --test_timeout=300,1500,5400,18000
# when errors are found, try `-c dbg --config fastmemcheck` or `--config
# memcheck` to recompile with line numbers and lower optimization levels.
#
build:fastmemcheck --run_under=//tools:valgrind
test:fastmemcheck --run_under=//tools:valgrind
test:fastmemcheck --test_lang_filters=-sh,-py
# Slowdown factor can range from 5-100.
# See http://valgrind.org/info/about.html
test:fastmemcheck --test_timeout=300,1500,5400,18000
test:fastmemcheck --test_timeout=600,3000,10800,36000 # 10x

0 comments on commit 77ae6f9

Please sign in to comment.