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

Add wkdev-setup-default-clang script #65

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TingPing
Copy link
Member

This allows easily installing and switching between different clang toolchains

@TingPing TingPing force-pushed the pgriffis/set-default-clang branch from df8d268 to 6947e62 Compare October 24, 2024 23:01
@TingPing TingPing changed the title Add wkdev-set-default-clang script Add wkdev-setup-default-clang script Oct 24, 2024
ln -s "/usr/bin/${command}-18" "/usr/local/bin/${command}"; \
done && ln -s "/usr/bin/lld-18" "/usr/local/bin/ld.lld";
# Convenience symlinks for clang tools, the VSCode extension doesn't find these by default.
# FIXME: Reduce code duplication with `wkdev-set-default-clang`.
Copy link
Member

Choose a reason for hiding this comment

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

We should be able to invoke this script from here, no? Maybe at a later point in the script, but still..

Copy link
Member Author

@TingPing TingPing Oct 25, 2024

Choose a reason for hiding this comment

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

The wkdev-sdk scripts are not in the image. We could copy them and then remove them, feels not great either.

Copy link
Member

Choose a reason for hiding this comment

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

As long as you copy and remove in the same layer, there is no increase an image size -- I agree looks odd, but helps reducing code duplication...

scripts/container-only/wkdev-setup-default-clang Outdated Show resolved Hide resolved
scripts/container-only/wkdev-setup-default-clang Outdated Show resolved Hide resolved
scripts/container-only/wkdev-setup-default-clang Outdated Show resolved Hide resolved
scripts/container-only/wkdev-setup-default-clang Outdated Show resolved Hide resolved
@TingPing TingPing marked this pull request as draft November 4, 2024 20:24
@TingPing TingPing force-pushed the pgriffis/set-default-clang branch 2 times, most recently from 52cc007 to 066cfa4 Compare January 4, 2025 23:24
@TingPing TingPing marked this pull request as ready for review January 4, 2025 23:24
@dpino dpino mentioned this pull request Jan 8, 2025
This allows easily installing and switching between different clang toolchains
@TingPing TingPing force-pushed the pgriffis/set-default-clang branch from 066cfa4 to 036dc5f Compare January 8, 2025 20:47
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.

2 participants