Skip to content

Conversation

@edgchen1
Copy link
Contributor

@edgchen1 edgchen1 commented Jan 28, 2026

Description

Enable C++20 for more builds. Previously, it was limited to MacOS builds. Now, it is enabled for all builds except for ones with the CUDA EP enabled.

Motivation and Context

Working towards updating to the C++20 standard to enable use of new language and standard library features.

--cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=OFF
# Job 7: Extended minimal build with NNAPI EP for Android(arm64-v8a) and skip tests.
# NOTE: Keeping this as direct docker run due to custom volume mounts needed for Android SDK/NDK
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's an error with CMake not finding clang-scan-deps from the NDK for the particular configuration of:

  • Linux build with Docker container
  • C++20
  • Ninja generator

it works fine when running outside of Docker. this is what the other Android CI builds do, e.g., here:

I just simplified this to make it consistent instead of debugging further for now.

@edgchen1 edgchen1 changed the title [WIP] Update onnxruntime to C++20 Enable C++20 for more builds Feb 4, 2026
@edgchen1 edgchen1 marked this pull request as ready for review February 4, 2026 02:29
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.

2 participants