Skip to content

Commit

Permalink
Force cmake version when build ONNX Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 committed Jan 22, 2025
1 parent 061fa35 commit e7c0527
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/onnx/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ else
info "Checkout v1.20.0 because that's what ort v2.0.0-rc.9 supports."
git checkout v1.20.0

# The build fails with GCC 14 due to warnings as errors.
sed -i '/function(onnxruntime_set_compile_flags/a\
target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:CXX>:-Wno-maybe-uninitialized>")\
target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:CXX>:-Wno-uninitialized>")' \
cmake/CMakeLists.txt

info "Build the static libraries."
x ./build.sh --config=Release --parallel $ONNX_RUNTIME_BUILD_FLAGS

Expand Down

0 comments on commit e7c0527

Please sign in to comment.