mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user