]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3-numpy: Enable rvv with clang on riscv
authorKhem Raj <raj.khem@gmail.com>
Thu, 15 May 2025 06:54:13 +0000 (23:54 -0700)
committerKhem Raj <raj.khem@gmail.com>
Thu, 2 Oct 2025 16:48:06 +0000 (09:48 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-devtools/python/python3-numpy_2.3.3.bb

index dee3bfaa44f21b043f18bc9157b2eac7a1f4f843..92cdcc2b25dd5472096dc376659dd667d9977295 100644 (file)
@@ -26,6 +26,9 @@ PACKAGECONFIG[svml] = "-Ddisable-svml=false,-Ddisable-svml=true"
 # the overflow tests fail with compiler-rt on aarch64
 LDFLAGS:append:toolchain-clang:aarch64 = " -rtlib=libgcc -unwindlib=libgcc"
 
+TOOLCHAIN_OPTIONS:append:toolchain-clang:riscv64 = " -march=rv64gcv"
+TOOLCHAIN_OPTIONS:append:toolchain-clang:riscv32 = " -march=rv32gcv"
+
 # Remove references to buildpaths from numpy's __config__.py
 do_install:append() {
     sed -i \