Skip to content

Conversation

@GrzegorzSpryszynski-TomTom
Copy link
Contributor

@GrzegorzSpryszynski-TomTom GrzegorzSpryszynski-TomTom commented Jul 19, 2023

SPM cannot always properly recognise dependency type (dynamic or static) so it would be useful to be able to explicitly specify if static or dynamic is needed.
This is the case when eg. dependency is provided not as a source code but rather as a binary and dependency is already fixed into the file.
SPM is not able to detect binary dependencies. There is also no way to specify type of binary's dependencies.

There is already Antlr4Static in Package.swift so dynamic equivalent should be added for completeness.

This PR brings back the change that as introduced a year ago but was later overwritten by dev to master merge.

Signed-off-by: Grzegorz Spryszyński <[email protected]>
@GrzegorzSpryszynski-TomTom GrzegorzSpryszynski-TomTom marked this pull request as ready for review July 19, 2023 12:45
@parrt
Copy link
Member

parrt commented Aug 17, 2023

Hi. how certain are you that this change is correct for all of the swift folks?

@parrt parrt added this to the 4.13.1 milestone Aug 17, 2023
@GrzegorzSpryszynski-TomTom
Copy link
Contributor Author

Hi. how certain are you that this change is correct for all of the swift folks?

Hi, it will be invisible for most of them. it doesn't brake current setups. It is logical addition to the current target Antlr4Static. And it was already discussed.
It will be usefull for small number of developers who uses binary targets together with package source and maybe others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants