Skip to content

Add llvm21 to PATH#1017

Open
tristianc wants to merge 1 commit intoworkbenchdev:mainfrom
tristianc:bugfix/use-llvm-21
Open

Add llvm21 to PATH#1017
tristianc wants to merge 1 commit intoworkbenchdev:mainfrom
tristianc:bugfix/use-llvm-21

Conversation

@tristianc
Copy link

I'm using Workbench in a Flatpak, but it doesn't compile Rust projects, even though I've granted it the network permission via Flatseal and I've added the extensions that Workbench instructed me to:

  • org.freedesktop.Sdk.Extension.llvm21
  • org.freedesktop.Sdk.Extension.rust-stable

On line 83 of src/Extensions/Extensions.js, the version of LLVM used to compile Rust projects is set to llvm21. However, the script to actually add the LLVM extension to $PATH tries to add llvm11 instead.

Until the fix is committed, a user can add the LLVM extension directory to the flatpak's path via an override:

  flatpak override --user \
    --env=PATH=/usr/lib/sdk/llvm21/bin:/usr/lib/sdk/rust-stable/bin:/app/bin:/usr/bin \
    re.sonny.Workbench

Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

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

Thanks!

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