File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,12 @@ export PACKAGES="ninja-build"
17
17
# BDB generates false-positives and will be removed in future
18
18
export DEP_OPTS=" DEBUG=1 NO_BDB=1 NO_QT=1 CC=clang CXX=clang++ CFLAGS='${MSAN_FLAGS} ' CXXFLAGS='${MSAN_AND_LIBCXX_FLAGS} '"
19
19
export GOAL=" install"
20
+ # Setting CMAKE_{C,CXX}_FLAGS_DEBUG flags to an empty string ensures that the flags set in MSAN_FLAGS remain unaltered.
20
21
# _FORTIFY_SOURCE is not compatible with MSAN.
21
22
export BITCOIN_CONFIG=" \
23
+ -DCMAKE_BUILD_TYPE=Debug \
24
+ -DCMAKE_C_FLAGS_DEBUG='' \
25
+ -DCMAKE_CXX_FLAGS_DEBUG='' \
22
26
-DBUILD_FOR_FUZZING=ON \
23
27
-DSANITIZERS=fuzzer,memory \
24
28
-DAPPEND_CPPFLAGS='-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE -U_FORTIFY_SOURCE' \
Original file line number Diff line number Diff line change @@ -17,8 +17,15 @@ export PACKAGES="ninja-build"
17
17
# BDB generates false-positives and will be removed in future
18
18
export DEP_OPTS=" DEBUG=1 NO_BDB=1 NO_QT=1 CC=clang CXX=clang++ CFLAGS='${MSAN_FLAGS} ' CXXFLAGS='${MSAN_AND_LIBCXX_FLAGS} '"
19
19
export GOAL=" install"
20
+ # Setting CMAKE_{C,CXX}_FLAGS_DEBUG flags to an empty string ensures that the flags set in MSAN_FLAGS remain unaltered.
20
21
# _FORTIFY_SOURCE is not compatible with MSAN.
21
- export BITCOIN_CONFIG=" -DSANITIZERS=memory -DAPPEND_CPPFLAGS='-U_FORTIFY_SOURCE'"
22
+ export BITCOIN_CONFIG=" \
23
+ -DCMAKE_BUILD_TYPE=Debug \
24
+ -DCMAKE_C_FLAGS_DEBUG='' \
25
+ -DCMAKE_CXX_FLAGS_DEBUG='' \
26
+ -DSANITIZERS=memory \
27
+ -DAPPEND_CPPFLAGS='-U_FORTIFY_SOURCE' \
28
+ "
22
29
export USE_MEMORY_SANITIZER=" true"
23
30
export RUN_FUNCTIONAL_TESTS=" false"
24
31
export CCACHE_MAXSIZE=250M
You can’t perform that action at this time.
0 commit comments