dev-lang/odin: strip only unsupported flags

Odin explicitly builds using `clang++` regardless of toolchain. Older
Odin ebuilds explicitly cleared `CPPFLAGS` and `CXXFLAGS` with the
comment "build_odin.sh sets its own flags. Some gcc flags cause build
failures"; this stripping was later migrated to `strip-flags`.

Full stripping isn't necessary, though: the Odin build script _appends_
its own flags instead of replacing them, and GCC-specific flags can be
stripped using `strip-unsupported-flags` instead.

Closes: https://bugs.gentoo.org/974732
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber
2026-06-23 11:21:05 -04:00
parent 3af1a99302
commit c0b49f36b8

View File

@@ -32,7 +32,8 @@ RDEPEND="
BDEPEND="${RDEPEND}"
src_configure() {
strip-flags
# Odin explicitly searches for and builds with clang++; unsupported GCC flags need to be stripped.
CC=clang CXX=clang++ strip-unsupported-flags
default
}