Skip to content

Propagate runtime C++ library selection for portable Linux builds - #8608

Merged
jkoritzinsky merged 2 commits into
mainfrom
copilot/add-target-cxx-standard-library-support
Oct 9, 2026
Merged

jkoritzinsky merged 2 commits into
mainfrom
copilot/add-target-cxx-standard-library-support

Conversation

Copilot AI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Portable-targeting Linux builds need to match runtime’s libc++ build-script configuration. This updates the VMR runtime repo project and Linux vertical build definitions to pass the full C++ library selection through to the underlying runtime build.

  • Runtime repo project
    • Forward TargetCxxStandardLibraryStatic and TargetCxxAbiLibrary alongside the existing TargetCxxStandardLibrary property.
/p:TargetCxxStandardLibrary=libc++
/p:TargetCxxStandardLibraryStatic=true
/p:TargetCxxAbiLibrary=libstdc++
  • Portable Linux verticals
    • Apply the requested C++ library settings to Linux x64, Linux arm64, and Linux arm builds.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR propagates runtime C++ runtime-library selection properties through the VMR build orchestration so that portable-targeting Linux vertical builds can match the runtime repo’s libc++/ABI configuration.

Changes:

  • Forward TargetCxxStandardLibraryStatic and TargetCxxAbiLibrary (in addition to TargetCxxStandardLibrary) from repo-projects/runtime.proj into the underlying runtime build.
  • Apply the requested C++ library settings to the Linux x64, arm, and arm64 vertical builds via pipeline extraProperties.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
repo-projects/runtime.proj Forwards additional C++ library selection properties into runtime build arguments.
eng/pipelines/templates/stages/vmr-verticals.yml Passes C++ library selection properties to portable Linux vertical build jobs.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread repo-projects/runtime.proj Resolved
@jkoritzinsky

Copy link
Copy Markdown
Member

@copilot please address the review comments from @copilot

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please address the review comments from @copilot

Addressed the review feedback in e06caa0 by updating the runtime C++ forwarding comment and adding the same C++ library properties to the Linux_Pgo x64 and arm64 verticals.

@jkoritzinsky
jkoritzinsky merged commit f900ee0 into main Oct 9, 2026
11 checks passed
jkoritzinsky added a commit to dotnet/runtime that referenced this pull request Oct 9, 2026
…bc++ w/ libstdc++ ABI for linux arm/arm64/x64 (#132347)

Follow-up to #101088 and #101773

Update our build pipelines to build against a serviceable C++ standard
library and update our guidelines to allow such usage.

dotnet/dotnet PR at dotnet/dotnet#8608

---------

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 8ca91663-a7d4-41ba-86ec-f907bec4de34
@jkoritzinsky
jkoritzinsky deleted the copilot/add-target-cxx-standard-library-support branch October 9, 2026 23:24
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.

4 participants