Skip to content

PackageModel: fix Destination.init default arguments #5953

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

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

MaxDesiatov
Copy link
Contributor

Motivation:

extraCPPFlags previously had a default value, but after renaming to extraCXXFlags in 75877ea this default value was lost. Let's restore it for compatibility with libSwiftPM clients.

Modifications:

extraCPPFlags argument of deprecated Destination.init now has a default argument, like it had before 75877ea.

Result:

Code relying on libSwiftPM now can rely on the default argument, as it did before.

`extraCPPFlags` previously had a default value, but after renaming to `extraCXXFlags` in 75877ea this default value was lost. Let's restore it for compatibility with libSwiftPM clients.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test

@MaxDesiatov
Copy link
Contributor Author

@neonichu I'm seeing this error again you mentioned recently, do you know if this is sporadic or is there a way to make it go away or work around it?

SimplePackageTests.xctest: error while loading shared libraries: libswift_RegexParser.so: cannot open shared object file: No such file or directory

@MaxDesiatov
Copy link
Contributor Author

@swift-ci please test Windows

@neonichu
Copy link
Contributor

neonichu commented Dec 7, 2022

@neonichu I'm seeing this error again you mentioned recently, do you know if this is sporadic or is there a way to make it go away or work around it?

No, it's consistent and appears to be an issue with recent nightly toolchains where XCTest is built in a way that requires explicitly setting up library search paths at runtime. Trying to land a workaround here: #5952

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test Linux

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test Windows

@MaxDesiatov MaxDesiatov merged commit 482d78e into main Dec 8, 2022
@MaxDesiatov MaxDesiatov deleted the maxd/fix-destination-init branch December 8, 2022 17:02
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