mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
286 B
10 lines
286 B
2 months ago
|
# see https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html#index-march-14
|
||
|
function(ocv_set_platform_flags VAR)
|
||
|
if(ENABLE_RVV OR RISCV_RVV_SCALABLE)
|
||
|
set(flags "-march=rv64gcv")
|
||
|
else()
|
||
|
set(flags "-march=rv64gc")
|
||
|
endif()
|
||
|
set(${VAR} "${flags}" PARENT_SCOPE)
|
||
|
endfunction()
|