Skip to content

Conversation

@compnerd
Copy link
Member

When SwiftSystem is not provided to be built against explicitly (i.e.
-D SwiftSystem_DIR=...), vendor a copy of SwiftSystem to allow the
library to be built by including and building its dependencies. This
behaviour is similar to how SPM based builds function.

Swift now requires CMake 3.19.6 as a minimum version.  Assume that we
can use CMake newer than 3.16 and simplify the build rules.
When SwiftSystem is not provided to be built against explicitly (i.e.
`-D SwiftSystem_DIR=...`), vendor a copy of SwiftSystem to allow the
library to be built by including and building its dependencies.  This
behaviour is similar to how SPM based builds function.
@compnerd
Copy link
Member Author

@swift-ci please test

@neonichu
Copy link
Contributor

@tomerd can we just cut the swift-system dependency actually? IIRC, it was eagerly added in anticipation of using its path type but we have no plans to actually use that anymore.

@compnerd
Copy link
Member Author

@neonichu hmm, we can for the vendoring path, but the non-vendored path needs it as imports are public still, and TSC has a dependency on System.

@neonichu
Copy link
Contributor

Right, what I mean is that the dependency doesn't actually have any purpose. I opened a PR to remove it: #448

@compnerd compnerd closed this Nov 30, 2023
@compnerd compnerd deleted the vendor branch November 30, 2023 23:09
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.

2 participants