Workbench
Workbench copied to clipboard
Allow use of newer flatpak llvm runtime
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?
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 .
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:
llvm16is needed until there is a release ofgcc12.1. As soon asgcc12.1is in the freedesktop sdk,gcccan be used instead ofclang.
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 it's not that easy - see https://github.com/workbenchdev/Workbench/issues/611