Skip to content

Test: allow different deployment target versions for tests on Darwin #83464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Jul 31, 2025

Currently we are using the same versions we use to build compiler and
standard library. This is an unnecessary coupling especially when
testing the generation of backdeployed executables for macOS -- here
we have interest in being able to run the tests on previous OSes, not
the compiler itself.

To support this, add new --darwin-test-deployment-version-<platform>
flags to build-script, which by default take the same value as the
matching --darwin-deployment-version-<platform> ones.

Piggyback a change to not require CMake to be in the search path for build-script tests

Addresses rdar://156724078

edymtt added 2 commits July 31, 2025 08:19
Currently we are using the same versions we use to build compiler and
standard library. This is an unnecessary coupling especially when
testing the generation of backdeployed executables for macOS -- here
we have interest in being able to run the tests on previous OSes, not
the compiler itself.

To support this, add new `--darwin-test-deployment-version-<platform>`
flags to build-script, which by default take the same value as the
matching `--darwin-deployment-version-<platform>` ones.

Addresses rdar://156724078
@edymtt
Copy link
Contributor Author

edymtt commented Jul 31, 2025

@swift-ci please test

@edymtt
Copy link
Contributor Author

edymtt commented Jul 31, 2025

@swift-ci please build toolchain

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