Skip to content

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Aug 31, 2025

  • added make variables CPPOPTS to extend existing CPPFLAGS
  • CPPFLAGS are not longer being passed to the linker command for cppcheck and testrunner
  • added missing handling of CXXOPTS and LDOPTS for oss-fuzz

@firewave
Copy link
Collaborator Author

Pre-requisite for #7735 and https://trac.cppcheck.net/ticket/14103.

make -j$(nproc) -s CXXOPTS="-O2 -w -DHAVE_BOOST -gdwarf-4 -mllvm -inline-deferral" MATCHCOMPILER=yes
make -j$(nproc) -s CXXOPTS="-O2 -gdwarf-4" CPPOPTS="-DHAVE_BOOST -mllvm -inline-deferral" MATCHCOMPILER=yes
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes a warning because compiler-only flags were passed to the linker also.

@firewave firewave marked this pull request as draft August 31, 2025 17:05
- added make variables `CPPOPTS` to extend existing `CPPFLAGS`
- `CPPFLAGS` are not longer being passed to the linker command for `cppcheck` and `testrunner`
- added missing handling of `CXXOPTS` and `LDOPTS` for `oss-fuzz`
Copy link

@firewave firewave marked this pull request as ready for review September 3, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant