mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
riscv: Clearly separate the build flow for autotools and cmake
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
This commit is contained in:
parent
be81ebe1a4
commit
21895b05ab
@ -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)
|
||||||
|
@ -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 1
|
|
||||||
# else
|
|
||||||
# define PNG_RISCV_RVV_OPT 0
|
# define PNG_RISCV_RVV_OPT 0
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PNG_ARM_NEON_OPT > 0
|
#if PNG_ARM_NEON_OPT > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user