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

Do not link LLVM libraries into cpptest binary #15639

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

kparzysz-quic
Copy link
Contributor

They are already linked into libtvm.so, and cpptests links against libtvm.so, so they are not needed again. On the other hand, linking them twice can lead to the following error:

CommandLine Error: Option 'print-summary-global-ids' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for fixing this issue!

… TVM

They are already linked into libtvm.so, and cpptests links against
libtvm.so, so if they are visible in the TVM library, they are not
needed again. On the other hand, linking them twice can lead to the
following error:
```
CommandLine Error: Option 'print-summary-global-ids' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
```
@Hzfengsy Hzfengsy merged commit 79f9e57 into apache:main Aug 30, 2023
@kparzysz-quic kparzysz-quic deleted the cpptest-link-llvm branch August 30, 2023 17:00
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