Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

Allow use of newer flatpak llvm runtime

Open neildarlow opened this issue 1 year ago • 3 comments

Workbench prompts users to install the llvm16 flatpak runtime to enable Rust support when a newer version is already installed. Would it be possible to require a minimum llvm runtime version while accepting newer ones?

neildarlow avatar Jun 18 '24 09:06 neildarlow

Without testing - I would be worried of breakage.

Maybe just updating the requested LLVM would be enough? Wanna give it a try? Should be pretty easy to do; search the codebase for llvm .

sonnyp avatar Jun 28 '24 11:06 sonnyp

Shouldn't it be possible to drop LLVM from Workbench completely? I think the only reason it's used is to access the (faster) mold linker. The README of org.freedesktop.Sdk.Extension.rust-stable says the following:

Note: llvm16 is needed until there is a release of gcc12.1. As soon as gcc12.1 is in the freedesktop sdk, gcc can be used instead of clang.

With the current GNOME SDK Master:

[📦 org.gnome.Sdk ~]$ gcc --version
gcc (GCC) 14.1.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hence it should be possible to remove the LLVM dependency

vixalien avatar Jul 02 '24 16:07 vixalien

@vixalien it's not that easy - see https://github.com/workbenchdev/Workbench/issues/611

sonnyp avatar Jul 03 '24 08:07 sonnyp