On Fri, 20 Dec 2024 13:40:08 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:

>> `SVE_CFLAGS` is used to compile a separate library, libsleef. They do not 
>> have an already prepared set of flags to use, as Hotspot do. (Hotspot is the 
>> only library which has this, since it is magnitutes more complex than other 
>> libraries.)
>
> Having different flags for the build and the target JVM is a bit more tricky, 
> but not impossible. You just need to "hålla tungan rätt i mun". :-) 
> 
> In `FLAGS_SETUP_CFLAGS_CPU_DEP`, you need to add something like:
> 
>   if test "x$FLAGS_CPU" = xriscv64; then
>     $1_DEFINES_CPU_JVM="$1_DEFINES_CPU_JVM $2RVV_DEFINES"
>   fi

Thanks, I'll test it.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22845#discussion_r1893965260

Reply via email to