mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
RISC-V RVV diagnostic fix.
This commit is contained in:
Vendored
+2
-3
@@ -183,7 +183,7 @@ if(TARGET_ARCH MATCHES "^(loongarch)")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for RISC-V.
|
# Set definitions and sources for RISC-V.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(riscv)")
|
if(TARGET_ARCH MATCHES "^(riscv)")
|
||||||
include(CheckCCompilerFlag)
|
include(CheckCCompilerFlag)
|
||||||
set(PNG_RISCV_RVV_POSSIBLE_VALUES on off)
|
set(PNG_RISCV_RVV_POSSIBLE_VALUES on off)
|
||||||
set(PNG_RISCV_RVV "on"
|
set(PNG_RISCV_RVV "on"
|
||||||
@@ -194,7 +194,6 @@ if(PNG_TARGET_ARCHITECTURE MATCHES "^(riscv)")
|
|||||||
if(index EQUAL -1)
|
if(index EQUAL -1)
|
||||||
message(FATAL_ERROR "PNG_RISCV_RVV must be one of [${PNG_RISCV_RVV_POSSIBLE_VALUES}]")
|
message(FATAL_ERROR "PNG_RISCV_RVV must be one of [${PNG_RISCV_RVV_POSSIBLE_VALUES}]")
|
||||||
elseif(NOT PNG_RISCV_RVV STREQUAL "off")
|
elseif(NOT PNG_RISCV_RVV STREQUAL "off")
|
||||||
|
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#include <riscv_vector.h>
|
#include <riscv_vector.h>
|
||||||
int main() {
|
int main() {
|
||||||
@@ -247,7 +246,7 @@ if(TARGET_ARCH MATCHES "^(loongarch)")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set definitions and sources for RISC-V.
|
# Set definitions and sources for RISC-V.
|
||||||
if(PNG_TARGET_ARCHITECTURE MATCHES "^(riscv)")
|
if(TARGET_ARCH MATCHES "^(riscv)")
|
||||||
add_definitions(-DPNG_RISCV_RVV_OPT=0)
|
add_definitions(-DPNG_RISCV_RVV_OPT=0)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user