mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-10 18:11:04 +09:00
Turn off "V" in zlib-ng compilation (#104776)
Our target ISA is rv64gc, not gcv. If kernel can't detect RISC-V extensions, zlib-ng defaults has_rvv to true, which crashes on hardware without vector instructions like VisionFive 2.
This commit is contained in:
parent
a955d599c2
commit
edf167216a
1 changed files with 3 additions and 0 deletions
3
src/native/external/zlib-ng.cmake
vendored
3
src/native/external/zlib-ng.cmake
vendored
|
@ -9,6 +9,9 @@ set(ZLIB_ENABLE_TESTS OFF)
|
|||
set(ZLIBNG_ENABLE_TESTS OFF)
|
||||
set(Z_PREFIX ON)
|
||||
|
||||
# TODO: Turn back on when Linux kernels with proper RISC-V extension detection (>= 6.5) are more commonplace
|
||||
set(WITH_RVV OFF)
|
||||
|
||||
add_compile_options($<$<COMPILE_LANG_AND_ID:C,Clang,AppleClang>:-Wno-unused-command-line-argument>) # clang : error : argument unused during compilation: '-fno-semantic-interposition'
|
||||
add_compile_options($<$<COMPILE_LANG_AND_ID:C,Clang,AppleClang>:-Wno-logical-op-parentheses>) # place parentheses around the '&&' expression to silence this warning
|
||||
add_compile_options($<$<COMPILE_LANG_AND_ID:C,MSVC>:/wd4127>) # warning C4127: conditional expression is constant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue