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.

# valgrind cannot handle DWARF 5 yet so force version 4
# work around performance regression with -inline-deferral
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`
@sonarqubecloud
Copy link

@firewave firewave marked this pull request as ready for review September 3, 2025 08:47
@firewave firewave merged commit 8378b97 into danmar:main Sep 10, 2025
63 checks passed
@firewave firewave deleted the cppflags branch September 10, 2025 12:52
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.

2 participants