Skip to content

Commit

Permalink
Prevent Valgrind errors for RE2 #1635
Browse files Browse the repository at this point in the history
Added flag -DRE2_ON_VALGRIND to ensure that RE2 initialize memory structures and avoid Valgrind errors
  • Loading branch information
renecannao committed Aug 8, 2018
1 parent 73f73b6 commit 6c27216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ re2/re2/obj/libre2.a:
cd re2 && tar -zxf re2.tar.gz
# cd re2/re2 && sed -i -e 's/-O3 -g /-O3 -fPIC /' Makefile
# cd re2 && patch re2/util/mutex.h < mutex.h.patch
cd re2/re2 && sed -i -e 's/-O3 /-O3 -DMEMORY_SANITIZER /' Makefile
cd re2/re2 && sed -i -e 's/-O3 /-O3 -DMEMORY_SANITIZER -DRE2_ON_VALGRIND /' Makefile
cd re2/re2 && CC=${CC} CXX=${CXX} ${MAKE}

re2: re2/re2/obj/libre2.a
Expand Down

0 comments on commit 6c27216

Please sign in to comment.