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

Fix linking on Debian/Ubuntu #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kinke
Copy link

@kinke kinke commented Nov 22, 2022

Which don't have the expected unversioned libclang.so symlink in the default lib dirs. I've added the dirs up to LLVM v20 (current version is 15) for some future-proofness.

Tested manually on Ubuntu 22, works (v14).

Which don't have the expected unversioned libclang.so symlink in the
default lib dirs. I've added the dirs up to LLVM v20 (current version
is 15) for some future-proofness.
@@ -40,14 +41,18 @@ jobs:
with:
compiler: ${{ matrix.dc }}

- name: Setup C++
- name: 'Non-Linux: Setup C++'
Copy link
Owner

Choose a reason for hiding this comment

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

I don't understand why this change is needed, given that it was working fine before. Is there something special about Ubuntu 22.04?

Copy link
Contributor

@aminya aminya Nov 22, 2022

Choose a reason for hiding this comment

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

If you can explain the problem, I can fix it in setup-cpp.

setup-cpp already sets many of the needed variables; you should not need manual handling of it. Also, nothing has changed on Ubuntu 22.
https://github.com/aminya/setup-cpp/blob/43c67b8a9c5b5a98b07816e3ccfdb4758dba5f7d/src/llvm/llvm.ts#L72

Copy link
Author

Choose a reason for hiding this comment

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

The point is to test whether it's working out of the box on at least 2 different Ubuntu versions, by installing the libclang-dev apt package, instead of doing some special GitHub-Actions setup that noone in real life uses on his dev box. (And had to work around by creating libclang.so symlinks manually, as we did at Symmetry.)

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

3 participants