Skip to content
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

[SWIFT] Add Antlr4Dynamic product #4363

Merged

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 <grzegorz.spryszynski@tomtom.com>
@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