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

[cmake] Do not link libLLVM.so on platforms that enable it by default. #852

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

vgvassilev
Copy link
Owner

AddLLVM.cmake can be configured in a way where it puts all LLVM libraries into a single libLLVM.so file. Then we can configure LLVM at build time to explicitly link libLLVM.so file to all targets that depend on llvm. That is very bad for plugins because it inserts the symbols once again into the binary causing double initialization of globals and other problems.

This breaks the clad package for conda.

This issue is related to #715.

Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.77%. Comparing base (2ff9fc1) to head (6be9308).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #852   +/-   ##
=======================================
  Coverage   94.77%   94.77%           
=======================================
  Files          49       49           
  Lines        7499     7499           
=======================================
  Hits         7107     7107           
  Misses        392      392           

AddLLVM.cmake can be configured in a way where it puts all LLVM libraries into
a single libLLVM.so file. Then we can configure LLVM at build time to explicitly
link libLLVM.so file to all targets that depend on llvm. That is very bad for
plugins because it inserts the symbols once again into the binary causing double
initialization of globals and other problems.

This breaks the clad package for conda.

This issue is related to #715.
@vgvassilev vgvassilev merged commit ca1f470 into master Apr 6, 2024
87 checks passed
@vgvassilev vgvassilev deleted the no-libLLVMso branch April 6, 2024 18:56
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