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

Make macOS CI more robust to changes in the SystemC library #664

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

quark17
Copy link
Collaborator

@quark17 quark17 commented Jan 17, 2024

The testsuite is failing with issue #557 again. To address that issue, we made the macOS CI workflow add the flag -std=c++11 for SystemC tests, since the SystemC library was compiled that way. However, it now seems that the SystemC library on macOS 12 and 13 is compiled for C++17. (For the macOS 12 VM, it varies! Sometimes it still installs SystemC compiled for C++11!) I can't identify what changed, but it presumably happened in the last two weeks: The CI for PR #660 passed two weeks ago, but failed today when merged.

To make the testsuite more robust to changes in the SystemC standard, this PR looks at the symbols in the SystemC library, to identify which flag is needed for linking.

The GitHub VMs for macOS 12 and 13 are now installing SystemC compiled
with a newer C++ standard than C++11.  This causes the testsuite to
fail to link, because we have hardcoded the flag '-std=c++11'.
In fact, the macOS 12 VM seems to sometimes install a library using
C++11 and sometimes using C++17.  To account for this, identify the
flag to use by looking at the symbols in the library.
@quark17 quark17 merged commit e4361d9 into B-Lang-org:main Jan 17, 2024
43 checks passed
@quark17 quark17 deleted the ci-systemc-std branch January 17, 2024 20:17
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.

None yet

1 participant