Skip to content

Fix std::numeric_limits missing include for NNEF-Tools target#71

Merged
kiritigowda merged 1 commit into
openvx_1.3.2from
kg/fix-nnef-limits
Jul 15, 2026
Merged

Fix std::numeric_limits missing include for NNEF-Tools target#71
kiritigowda merged 1 commit into
openvx_1.3.2from
kg/fix-nnef-limits

Conversation

@kiritigowda

Copy link
Copy Markdown
Member

Summary

  • kernels/NNEF-Tools uses std::numeric_limits without #include <limits>; modern GCC no longer pulls it in transitively, causing build failures
  • Previously worked around by passing -DCMAKE_CXX_FLAGS="-include limits" globally in CI, which pollutes all targets and requires every downstream consumer to apply the same workaround
  • Fix: add target_compile_options(nnef-lib PRIVATE -include limits) in kernels/CMakeLists.txt, scoped only to the affected target
  • Remove the now-redundant -DCMAKE_CXX_FLAGS="-include limits" workaround from ci.yml (both Debug and Release build jobs)

Test plan

  • Build with -DOPENVX_CONFORMANCE_NNEF_IMPORT=ON — should compile without -DCMAKE_CXX_FLAGS="-include limits"
  • CI passes without the global CXX flag workaround

🤖 Generated with Claude Code

Add target_compile_options(-include limits) scoped to the nnef-lib
target in kernels/CMakeLists.txt. Modern GCC no longer pulls in
<limits> transitively, causing build failures without an explicit
workaround. Scoping the fix to the target avoids polluting the global
CMAKE_CXX_FLAGS and removes the need for downstream consumers to
work around it. Remove the corresponding workaround from ci.yml.

Co-Authored-By: Claude <noreply@anthropic.com>
@kiritigowda kiritigowda self-assigned this Jul 15, 2026
@kiritigowda
kiritigowda requested a review from jessegv July 15, 2026 19:32
@kiritigowda
kiritigowda merged commit 63b738c into openvx_1.3.2 Jul 15, 2026
55 checks passed
@kiritigowda
kiritigowda deleted the kg/fix-nnef-limits branch July 15, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant