Skip to content

PackageModel: clean up naming of Destination properties #5871

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
Nov 4, 2022

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Nov 3, 2022

Motivation:

Destination type has some properties with pretty short names based entirely on abbreviations or knowledge of context. It also can't store the triple of the host that supports this destination. Making names of properties consistent makes it more maintainable and readable.

Modifications:

Introduced sdkRootDir replacing sdk, toolchainBinDir replacing binDir, and destinationTriple replacing target old names are marked as deprecated. Also added the new hostTriple property.

Result:

Makes property names in the codebase more consistent, also incorporates some preparatory work I'm doing for #5812.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test

@MaxDesiatov
Copy link
Contributor Author

MaxDesiatov commented Nov 3, 2022

Linux failure seems to be unrelated:

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 smoke test Linux

1 similar comment
@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test Linux

@MaxDesiatov MaxDesiatov merged commit ee59dfb into main Nov 4, 2022
@MaxDesiatov MaxDesiatov deleted the maxd/destination-properties branch November 4, 2022 10:55
MaxDesiatov added a commit that referenced this pull request Nov 4, 2022
Introduced `sdkRootDir` replacing `sdk`, `toolchainBinDir` replacing `binDir`, and `destinationTriple` replacing `target` old names are marked as deprecated. Also added the new `hostTriple` property.
MaxDesiatov added a commit that referenced this pull request Nov 4, 2022
Introduced `sdkRootDir` replacing `sdk`, `toolchainBinDir` replacing `binDir`, and `destinationTriple` replacing `target` old names are marked as deprecated. Also added the new `hostTriple` property.
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