Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cxx] use antlir distro toolchain when building for distro platform
Summary: The previous diff makes a CXX toolchain that uses antlir2 images to build cxx targets that link against an upstream centos platform, rather than the fbcode platform. This diff automatically selects this toolchain when the platform constraint is active. Test Plan: ``` ❯ buck2 test fbcode//antlir/distro/toolchain/cxx/tests: Buck UI: https://www.internalfb.com/buck2/bf305863-ab98-4c05-923d-40450a119488 Test UI: https://www.internalfb.com/intern/testinfra/testrun/2251800074356858 Tests finished: Pass 8. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` ``` ❯ buck2 test -c fbcode.arch=aarch64 fbcode//antlir/distro/toolchain/cxx/tests: Buck UI: https://www.internalfb.com/buck2/d79f7370-2e29-411a-ac64-53789f28b9da Test UI: https://www.internalfb.com/intern/testinfra/testrun/17169973639622886 Tests finished: Pass 8. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` Reviewed By: dtolnay Differential Revision: D66986700 fbshipit-source-id: d96336154a0c9e5924a8a446e30e805aa4b4241f
- Loading branch information