sci-libs/onnxruntime: remove Werror

Signed-off-by: Patrick Nicolas <patricknicolas@laposte.net>
This commit is contained in:
Patrick Nicolas
2026-04-17 18:37:23 +02:00
parent 51c992ce86
commit 7f1dfe4cdf
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
diff '--color=auto' -rdu onnxruntime-1.24.4.orig/cmake/CMakeLists.txt onnxruntime-1.24.4/cmake/CMakeLists.txt
--- onnxruntime-1.24.4.orig/cmake/CMakeLists.txt 2026-03-16 23:52:22.000000000 +0100
+++ onnxruntime-1.24.4/cmake/CMakeLists.txt 2026-04-17 18:31:40.823920137 +0200
@@ -1081,7 +1081,6 @@
target_compile_definitions(${target_name} PRIVATE USE_KLEIDIAI)
endif()
- set_target_properties(${target_name} PROPERTIES COMPILE_WARNING_AS_ERROR ON)
if (onnxruntime_USE_CUDA)
# Suppress a "conversion_function_not_usable" warning in gsl/span
target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcudafe \"--diag_suppress=conversion_function_not_usable\">")

View File

@@ -71,6 +71,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/${PN}-1.22.2-relax-the-dependency-on-flatbuffers.patch"
"${FILESDIR}/${PN}-1.24.3-use-system-libraries.patch"
"${FILESDIR}/${PN}-1.24.4-no-werror.patch"
)
CMAKE_USE_DIR="${S}/cmake"