-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[windows] add a parameter to skip building experimental SDKs in build.ps1 #83455
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,10 @@ This component is currently only supported in Android builds. | |
If set, does not run the build phase. | ||
|
||
.PARAMETER SkipPackaging | ||
If set, skips building the msi's and installer | ||
If set, skips building the msi's and installer. | ||
|
||
.PARAMETER SkipExperimentalSDK | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that this should be another parameter. Perhaps we can handle this uniformly with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking a bit about this - it would actually be helpful to have this functionality more generically: we should be able to disable the non-experimental SDK bits more than the experimental SDK bits. The experimental SDK is what will become the default. That would also help with testing; perhaps we can have something clever as the specifier in the
|
||
If set, skips building the experimental SDKs. | ||
|
||
.PARAMETER DebugInfo | ||
If set, debug information will be generated for the builds. | ||
|
@@ -137,6 +140,7 @@ param | |
[switch] $Android = $false, | ||
[switch] $SkipBuild = $false, | ||
[switch] $SkipPackaging = $false, | ||
[switch] $SkipExperimentalSDK = $false, | ||
[switch] $IncludeDS2 = $false, | ||
[string[]] $Test = @(), | ||
[string] $Stage = "", | ||
|
@@ -2942,6 +2946,9 @@ function Build-SDK([Hashtable] $Platform, [switch] $IncludeMacros = $false) { | |
} | ||
|
||
function Build-ExperimentalSDK([Hashtable] $Platform) { | ||
if ($SkipExperimentalSDK) { | ||
return | ||
} | ||
# TODO(compnerd) we currently build the experimental SDK with just the static | ||
# variant. We should aim to build both dynamic and static variants. | ||
Invoke-BuildStep Build-ExperimentalRuntime $Platform -Static | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we cannot skip these in this test. This is used for the PR testing and we want to maintain that these are tested - they build differently and are very easy to regress because they are building static libraries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify: we would only deactivate this when running the lldb specific bots. The current Swift PR bots would still run those tests. Nothing would change for the current bots, it would only affect the new bots.