summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-11 21:37:42 -0400
committerSam James <sam@gentoo.org>2024-03-12 02:24:46 +0000
commit554481e2e6faedd753f33555358440a89ae02fbf (patch)
tree5469c18350f99cc4ba47ce22b4e288b87bad0105 /dev-util/hip
parentdev-libs/rocr-runtime: mark as LTO-unsafe (diff)
downloadgentoo-554481e2e6faedd753f33555358440a89ae02fbf.tar.gz
gentoo-554481e2e6faedd753f33555358440a89ae02fbf.tar.bz2
gentoo-554481e2e6faedd753f33555358440a89ae02fbf.zip
dev-util/hip: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/858383 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/hip')
-rw-r--r--dev-util/hip/hip-5.7.1-r2.ebuild8
-rw-r--r--dev-util/hip/hip-6.0.0.ebuild8
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-util/hip/hip-5.7.1-r2.ebuild b/dev-util/hip/hip-5.7.1-r2.ebuild
index 35d67cf0be55..c6c7376c0297 100644
--- a/dev-util/hip/hip-5.7.1-r2.ebuild
+++ b/dev-util/hip/hip-5.7.1-r2.ebuild
@@ -81,6 +81,14 @@ src_prepare() {
}
src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/858383
+ # https://github.com/ROCm/clr/issues/64
+ #
+ # Do not trust it for LTO either
+ append-flags -fno-strict-aliasing
+ filter-lto
+
# Workaround for bug #923986
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
diff --git a/dev-util/hip/hip-6.0.0.ebuild b/dev-util/hip/hip-6.0.0.ebuild
index a2bd451fae26..ff53e07dc49a 100644
--- a/dev-util/hip/hip-6.0.0.ebuild
+++ b/dev-util/hip/hip-6.0.0.ebuild
@@ -79,6 +79,14 @@ src_prepare() {
}
src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/858383
+ # https://github.com/ROCm/clr/issues/64
+ #
+ # Do not trust it for LTO either
+ append-flags -fno-strict-aliasing
+ filter-lto
+
use debug && CMAKE_BUILD_TYPE="Debug"
# Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382