riscv: Clearly separate the build flow for autotools and cmake

Signed-off-by: Cosmin Truta <ctruta@gmail.com>
This commit is contained in:
Filip Wasil 2025-06-17 14:08:17 +02:00 committed by Cosmin Truta
parent be81ebe1a4
commit 21895b05ab
2 changed files with 2 additions and 5 deletions

View File

@ -361,6 +361,7 @@ if(PNG_HARDWARE_OPTIMIZATIONS)
add_definitions(-DPNG_RISCV_RVV_OPT=2) add_definitions(-DPNG_RISCV_RVV_OPT=2)
elseif(PNG_RISCV_RVV STREQUAL "check") elseif(PNG_RISCV_RVV STREQUAL "check")
add_definitions(-DPNG_RISCV_RVV_CHECK_SUPPORTED) add_definitions(-DPNG_RISCV_RVV_CHECK_SUPPORTED)
add_definitions(-DPNG_RISCV_RVV_OPT=1)
endif() endif()
else() else()
add_definitions(-DPNG_RISCV_RVV_OPT=0) add_definitions(-DPNG_RISCV_RVV_OPT=0)

View File

@ -154,11 +154,7 @@
* to configure or put -DPNG_RISCV_RVV_OPT=2 in CPPFLAGS. * to configure or put -DPNG_RISCV_RVV_OPT=2 in CPPFLAGS.
*/ */
# if defined(__riscv) && defined(PNG_ALIGNED_MEMORY_SUPPORTED) # define PNG_RISCV_RVV_OPT 0
# define PNG_RISCV_RVV_OPT 1
# else
# define PNG_RISCV_RVV_OPT 0
# endif
#endif #endif
#if PNG_ARM_NEON_OPT > 0 #if PNG_ARM_NEON_OPT > 0