commit:     c127713269a116c187d54663e0523b9f79f11886
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 14 06:14:07 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan  3 07:40:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1277132

dev-libs/pocl: use 'distro' option for built kernels

We can't know what CPU the user will run the
built package on (think of binpkgs) so let's
use the 'distro' option which builds for
most common SIMD instructions and chooses
the most appropriate kernel it built at runtime.

Closes: https://bugs.gentoo.org/829128
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/pocl/pocl-1.8-r1.ebuild b/dev-libs/pocl/pocl-1.8-r1.ebuild
index 6ee4d704b519..13e8dd263413 100644
--- a/dev-libs/pocl/pocl-1.8-r1.ebuild
+++ b/dev-libs/pocl/pocl-1.8-r1.ebuild
@@ -73,7 +73,7 @@ src_configure() {
                -DENABLE_HSA=OFF
                -DENABLE_ICD=ON
                -DENABLE_POCL_BUILDING=ON
-               -DKERNELLIB_HOST_CPU_VARIANTS=native
+               -DKERNELLIB_HOST_CPU_VARIANTS=distro
                -DPOCL_ICD_ABSOLUTE_PATH=ON
                -DSTATIC_LLVM=OFF
                -DWITH_LLVM_CONFIG=$(get_llvm_prefix -d 
"${LLVM_MAX_SLOT}")/bin/llvm-config

Reply via email to