mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 18:07:08 -08:00
profiles: force llvm USE-flag for Zig on unsupported targets
Add an allowlist of targets where Zig can bootstrap itself without LLVM, and allow disabling `llvm` USE-flag only on that targets. Saves users from cryptic errors when they unknowingly try to use it on ARM or other architecture, and help a little bit with future keywording. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net> Closes: https://github.com/gentoo/gentoo/pull/40948 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Eric Joldasov <bratishkaerik@landless-city.net> (2025-03-11)
|
||||
# "x86_64" backend can succesfully bootstrap itself for Linux.
|
||||
>=dev-lang/zig-0.13 -llvm
|
||||
|
||||
# James Le Cuirot <chewi@gentoo.org> (2024-07-02)
|
||||
# Needed to build gcc. Force here rather than using BDEPEND to simplify
|
||||
# cross-compile scenarios.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Eric Joldasov <bratishkaerik@landless-city.net> (2025-03-11)
|
||||
# Force building Zig with LLVM extensions enabled. Non-LLVM backends
|
||||
# are in active development, and while some backends progressed enough
|
||||
# to build some simple or complex program, only small amount of them
|
||||
# can succesfully bootstrap Zig.
|
||||
# Unforce on targets where it's possible to bootstrap without LLVM.
|
||||
dev-lang/zig llvm
|
||||
Reference in New Issue
Block a user