feat: pass extra compiler arguments from the config file#1243
Closed
gennaroprota wants to merge 1 commit into
Closed
feat: pass extra compiler arguments from the config file#1243gennaroprota wants to merge 1 commit into
gennaroprota wants to merge 1 commit into
Conversation
✨ Highlights
🧾 Changes by Scope
🔝 Top Files
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1243 +/- ##
========================================
Coverage 83.16% 83.16%
========================================
Files 35 35
Lines 3660 3660
Branches 844 844
========================================
Hits 3044 3044
Misses 409 409
Partials 207 207
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
An automated preview of the documentation is available at https://1243.mrdocs.prtest2.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-07-24 13:38:52 UTC |
gennaroprota
force-pushed
the
feat/support_extra_compiler_args
branch
from
July 24, 2026 12:42
869ca92 to
d4d5c50
Compare
This adds support for an `extra-compiler-args` option (a list of strings whose values are appended verbatim to each translation unit's compile command). It is an escape hatch for compiler flags MrDocs does not model directly. Closes cppalliance#9.
gennaroprota
force-pushed
the
feat/support_extra_compiler_args
branch
from
July 24, 2026 13:28
d4d5c50 to
3b6c990
Compare
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds support for an
extra-compiler-argsoption (a list of strings whose values are appended verbatim to each translation unit's compile command). It is an escape hatch for compiler flags MrDocs does not model directly.Changes
adjustCommandLine()is extended to append any such arguments as specified in the config file.-D<macro_name>reaches the compiler.Testing
A new golden test includes a config file that adds the command-line argument
-DMRDOCS_EXTRA_ARG; the corresponding .cpp file uses that macro to guard a function declaration, and the test checks that the function is included in the XML output.Documentation
ConfigOptions.json provides the documentation for the new option.
Closes #9.