Skip to content

[cmake] add dynamic check for libstdc++fs#796

Closed
aaronj0 wants to merge 1 commit intocompiler-research:mainfrom
aaronj0:fix-dynamic-fs-check
Closed

[cmake] add dynamic check for libstdc++fs#796
aaronj0 wants to merge 1 commit intocompiler-research:mainfrom
aaronj0:fix-dynamic-fs-check

Conversation

@aaronj0
Copy link
Collaborator

@aaronj0 aaronj0 commented Feb 3, 2026

Based on root-project/root@957ac33 Looking at the compiler version is not enough to know if we really need to link against stdc++fs:

"""
Whether linking with libstdc++fs is needed depends on the version of libstdc++, not on the compiler. For example, it is possible to use an older library with a newer compiler, or with another compiler that follows a different versioning scheme (for example Clang). """

This adds a similar check in CppInterOp

Based on root-project/root@957ac33
Looking at the compiler version is not enough to know if we really need to link against stdc++fs:

"""
Whether linking with libstdc++fs is needed depends on the version of
libstdc++, not on the compiler. For example, it is possible to use an
older library with a newer compiler, or with another compiler that
follows a different versioning scheme (for example Clang).
"""

This adds a similar check in CppInterOp
@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.40%. Comparing base (4cc7ff5) to head (791c49d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #796   +/-   ##
=======================================
  Coverage   79.40%   79.40%           
=======================================
  Files          11       11           
  Lines        3987     3987           
=======================================
  Hits         3166     3166           
  Misses        821      821           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

Yes, that's the right check! LGTM!

@hahnjo
Copy link
Contributor

hahnjo commented Feb 4, 2026

Should also be closed in favor of #797, I think

@aaronj0
Copy link
Collaborator Author

aaronj0 commented Feb 4, 2026

Should also be closed in favor of #797, I think

Yes, thank you!

@aaronj0 aaronj0 closed this Feb 4, 2026
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.

3 participants