Skip to content

Include <iterator> directly in api_layer_interface.cpp#554

Merged
rpavlik merged 1 commit intoKhronosGroup:mainfrom
DKLoehr:libcxx-include
Jul 24, 2025
Merged

Include <iterator> directly in api_layer_interface.cpp#554
rpavlik merged 1 commit intoKhronosGroup:mainfrom
DKLoehr:libcxx-include

Conversation

@DKLoehr
Copy link
Copy Markdown
Contributor

@DKLoehr DKLoehr commented Jul 14, 2025

The newest version of LLVM's libc++ no longer includes transitively, so we need to include it directly in order to have access to std::back_inserter.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 14, 2025

CLA assistant check
All committers have signed the CLA.

aarongable pushed a commit to chromium/chromium that referenced this pull request Jul 14, 2025
The new libc++ roll requires us to add a direct include to this file.
Since it takes a while for upstream changes to roll in, fork the file
until it's fixed upstream.

The upstream change is
KhronosGroup/OpenXR-SDK-Source#554

For ease of review, the patchsets in this CL are as follows:
1 - copy the file unchanged
2 - Make the change, update the patch and build files

Note that the presubmit complained about formatting, but I wasn't able
to get `git cl format` to actually do anything.

Bug: 431755915
Change-Id: I0a42ccfbb1c95b8494d6590bf691578b82a7074a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6734768
Commit-Queue: Devon Loehr <dloehr@google.com>
Auto-Submit: Devon Loehr <dloehr@google.com>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1486440}
The newest version of LLVM's libc++ no longer includes <iterator> transitively, so we need to include it directly in order to have access to `std::back_inserter`.
@rpavlik
Copy link
Copy Markdown
Contributor

rpavlik commented Jul 24, 2025

Thanks!

@rpavlik rpavlik enabled auto-merge (rebase) July 24, 2025 22:13
@rpavlik rpavlik merged commit db9f07e into KhronosGroup:main Jul 24, 2025
30 checks passed
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.

3 participants