added --debug-lookup to log library loading#6436
added --debug-lookup to log library loading#6436firewave merged 1 commit intocppcheck-opensource:mainfrom
--debug-lookup to log library loading#6436Conversation
|
A few thoughts:
|
|
Only the sanitizer builds fail so we can simply disable |
|
|
sounds like a "bug" hope that can be fixed. the intention is that it will only be set if the package maintainer wants to set a hardcoded path. For instance in windows it should not be set. In my humble opinion |
That was already fixed by #6437.
We do set that for the official packages.
This is more a thing about safety as this hard-coded path (currently also invisible to the user) cannot be controlled. It should be the last one in the lookup order so it is basically just a fall-through but still. But none of this is scope of this PR. That should be tracked via tickets. |
|
So can this be merged? This is the required baseline for fixing issues/doing cleanups. |
|
I filed https://trac.cppcheck.net/ticket/12810 and https://trac.cppcheck.net/ticket/12811 about adding the proposed options. |
--debug-lookup to log library loading
danmar
left a comment
There was a problem hiding this comment.
looks good.. I am not against this --debug-lookup. I just have a question.
| - name: CMake | ||
| run: | | ||
| cmake -S . -B cmake.output -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=Off -DWITH_QCHART=Off -DUSE_MATCHCOMPILER=Verify -DANALYZE_ADDRESS=On -DENABLE_CHECK_INTERNAL=On -DUSE_BOOST=On -DCPPCHK_GLIBCXX_DEBUG=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=Off -DDISABLE_DMAKE=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
| cmake -S . -B cmake.output -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=Off -DWITH_QCHART=Off -DUSE_MATCHCOMPILER=Verify -DANALYZE_ADDRESS=On -DENABLE_CHECK_INTERNAL=On -DUSE_BOOST=On -DCPPCHK_GLIBCXX_DEBUG=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=Off -DDISABLE_DMAKE=On -DFILESDIR= -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache |
There was a problem hiding this comment.
Is there a particular reason to define FILESDIR here.
There was a problem hiding this comment.
Yes. Because it is set by default in CMake but not with make the tests will only work on either. For now I have omitted it from testing. This is one of the reasons an option to disable the usage of the built-in path would make sense.
No description provided.