Skip to content

[verilator driver] Fix for clang #8427

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

Merged
merged 1 commit into from
Apr 18, 2025
Merged

[verilator driver] Fix for clang #8427

merged 1 commit into from
Apr 18, 2025

Conversation

teqdruid
Copy link
Contributor

Was failing on link due to Verilator trace library not being found. I think this is because Verilator does not produce this library unless tracing is enabled. Further, clang (by default) doesn't detect that the symbols aren't actually needed (ie it doesn't optimize away the 'if' branch) so it requires them.

Was failing on link due to Verilator trace library not being found. I
think this is because Verilator does not produce this library unless
tracing is enabled. Further, clang (by default) doesn't detect that the
symbols aren't actually needed (ie it doesn't optimize away the 'if'
branch) so it requires them.
@teqdruid teqdruid merged commit 8e903ae into main Apr 18, 2025
5 checks passed
@teqdruid teqdruid deleted the teqdruid/driver-fix branch April 18, 2025 23:53
KelvinChung2000 pushed a commit to KelvinChung2000/circt that referenced this pull request Apr 22, 2025
Was failing on link due to Verilator trace library not being found. I
think this is because Verilator does not produce this library unless
tracing is enabled. Further, clang (by default) doesn't detect that the
symbols aren't actually needed (ie it doesn't optimize away the 'if'
branch) so it requires them.
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