dev-lang/odin: strip flags using flag-o-matic

Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber
2026-03-06 13:22:46 -05:00
parent a4b4987f14
commit 4b19f20064
2 changed files with 12 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
EAPI=8
LLVM_COMPAT=( {17..21} )
inherit llvm-r2
inherit flag-o-matic llvm-r2
DESCRIPTION="The Data-Oriented Language for Sane Software Development."
HOMEPAGE="https://odin-lang.org/"
@@ -31,9 +31,11 @@ RDEPEND="
BDEPEND="${RDEPEND}"
# build_odin.sh sets its own flags. Some gcc flags cause build failures
CPPFLAGS=""
CXXFLAGS=""
src_configure() {
strip-flags
default
}
src_compile() {
./build_odin.sh release || die "failed to build odin"
}

View File

@@ -4,7 +4,7 @@
EAPI=8
LLVM_COMPAT=( {17..21} )
inherit llvm-r2
inherit flag-o-matic llvm-r2
DESCRIPTION="The Data-Oriented Language for Sane Software Development."
HOMEPAGE="https://odin-lang.org/"
@@ -31,9 +31,11 @@ RDEPEND="
BDEPEND="${RDEPEND}"
# build_odin.sh sets its own flags. Some gcc flags cause build failures
CPPFLAGS=""
CXXFLAGS=""
src_configure() {
strip-flags
default
}
src_compile() {
./build_odin.sh release || die "failed to build odin"
}