Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DebugLibDeps #699

Merged
merged 9 commits into from
Feb 29, 2024
Merged

Fix DebugLibDeps #699

merged 9 commits into from
Feb 29, 2024

Conversation

fabianbs96
Copy link
Member

The cmake option PHASAR_DEBUG_LIBDEPS does not correctly verify that all dependencies are resolved.

To fix this, we now use the linker flag -Wl,-z,defs that reports a linker error if a library contains unresolved symbols.
We also fix dependency errors that were newly discovered by this.

@fabianbs96 fabianbs96 added the bug Something isn't working label Feb 8, 2024
@fabianbs96 fabianbs96 self-assigned this Feb 8, 2024
@fabianbs96 fabianbs96 requested a review from MMory as a code owner February 8, 2024 10:38
@fabianbs96 fabianbs96 added the in-tree This issue refers to the in-tree build label Feb 8, 2024
@fabianbs96 fabianbs96 added this to the Release 2403 milestone Feb 8, 2024
Copy link
Member

@MMory MMory left a comment

Choose a reason for hiding this comment

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

lgtm, good that you discovered and did this, thanks!

@@ -16,14 +16,14 @@ jobs:
build: [ Debug, Release ]
include:
- build: Debug
flags: -DPHASAR_BUILD_DYNLIB=ON -DPHASAR_ENABLE_SANITIZERS=ON
Copy link
Member

Choose a reason for hiding this comment

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

reverse the swap?

@MMory MMory merged commit fec44a5 into development Feb 29, 2024
4 checks passed
@MMory MMory deleted the f-FixDebugLibDeps branch February 29, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-tree This issue refers to the in-tree build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants