On the master branch @ 0d509bab45d292caeaf34600e57b5928757c6005, it is easy to check the "Options used to compile and link" section in the configure script output and observe duplicated compiler flags.
This PR cleans such cases up.
On the master branch @ 0d509bab45d292caeaf34600e57b5928757c6005, it is easy to check the "Options used to compile and link" section in the configure script output and observe duplicated compiler flags.
This PR cleans such cases up.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For detailed information about the code coverage, see the test coverage report.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
lgtm ACK be97652c07a10399c08ecb98dbbaeb33b84af774
The depends ones are not needed, because depends already passes the flags through. The -g isn't needed, because it is always set by default.
16 | @@ -17,7 +17,7 @@ export PACKAGES="ninja-build" 17 | # BDB generates false-positives and will be removed in future 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 | export GOAL="install" 20 | -export BITCOIN_CONFIG="--with-sanitizers=memory --disable-hardening --with-asm=no CFLAGS='${MSAN_FLAGS}' CXXFLAGS='${MSAN_AND_LIBCXX_FLAGS}'"
I guess going forward, we'll have to remember to never add any logic/other flags to the --with-sanitizers/cmake equivalent option, that differ from just setting -fsanitize=x? Otherwise they could possibly get missed in CI.
Removing this also now skips the link check(s) and I don't see where flags are getting added to LDFLAGS elsewhere? So this is at least a change in behaviour, some (not duplicated) flags have been dropped entirely, and I'd say somewhat less clear.
The --with-sanitizers=memory has been restored in the recent push.
re-ACK a3485af67da4949c72c45acc608f8746ed0e0848
ACK a3485af67da4949c72c45acc608f8746ed0e0848 - no-longer a change in behaviour.