Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable some warnings when building ONNX Runtime #894

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading