Skip to content

Fix macro leak and quiet the pragma in freestanding builds - #2

Merged
patkenneally merged 5 commits into
feature/freestandingfrom
fix/freestanding-packet-decl-macro-leak
Aug 25, 2026
Merged

Fix macro leak and quiet the pragma in freestanding builds#2
patkenneally merged 5 commits into
feature/freestandingfrom
fix/freestanding-packet-decl-macro-leak

Conversation

@patkenneally

@patkenneally patkenneally commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Two small fixes for the freestanding build.

The #ifndef EIGEN_FREESTANDING guard added in b037445 accidentally swallowed upstream's #undef PACKET_DECL_COND* lines, so in freestanding builds those four macros leak out of Eigen/Core and one of them collides in GeneralMatrixVector.h. Every translation unit warns about it. Fixed by undefining them at file scope
instead, after the last use. Upstream's lines are left alone so future merges against 3.4 don't conflict.

The other one: all_freestanding.hpp printed "Eigen in hosted mode" (or freestanding) on every single translation unit, which buries anything useful in the build log. Now behind EIGEN_FREESTANDING_VERBOSE if you want it back.

Checked both modes compile clean with and without EIGEN_FREESTANDING.

@patkenneally
patkenneally force-pushed the fix/freestanding-packet-decl-macro-leak branch 5 times, most recently from fa3d45e to 6d4b971 Compare August 25, 2026 00:10
@patkenneally
patkenneally force-pushed the fix/freestanding-packet-decl-macro-leak branch from 6d4b971 to a5bab9e Compare August 25, 2026 00:19
@patkenneally
patkenneally merged commit 475b25b into feature/freestanding Aug 25, 2026
4 checks passed
@patkenneally
patkenneally deleted the fix/freestanding-packet-decl-macro-leak branch August 25, 2026 17:50
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