Skip to content

Add default value for ExplicitModuleInfo isFramework #63119

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

Conversation

keith
Copy link
Member

@keith keith commented Jan 19, 2023

If the json file doesn't contain a value for this, this was never set, which results in UB.

Unfortunately clang doesn't warn about this but gcc does https://godbolt.org/z/M3sdE73zs

If the json file doesn't contain a value for this, this was never set,
which results in UB.

Unfortunately clang doesn't warn about this but gcc does https://godbolt.org/z/M3sdE73zs
@keith
Copy link
Member Author

keith commented Jan 19, 2023

@swift-ci please smoke test

@keith
Copy link
Member Author

keith commented Jan 19, 2023

I think ideally this value was always provided, but if it isn't this default feels better than UB

keith added a commit to bazelbuild/rules_swift that referenced this pull request Jan 19, 2023
Without this value you get UB swiftlang/swift#63119

This hit us where it defaults to true with Swift 5.7.2 on Ubuntu 22.04,
but not on Ubuntu 20.04. I don't think this ever needs to be true for
bazel
keith added a commit to bazelbuild/rules_swift that referenced this pull request Jan 20, 2023
Without this value you get UB swiftlang/swift#63119

This hit us where it defaults to true with Swift 5.7.2 on Ubuntu 22.04,
but not on Ubuntu 20.04. I don't think this ever needs to be true for
bazel
@keith
Copy link
Member Author

keith commented Jan 20, 2023

@swift-ci Please smoke test and merge

@swift-ci swift-ci merged commit 3be2302 into swiftlang:main Jan 20, 2023
@keith keith deleted the ks/add-default-value-for-explicitmoduleinfo-isframework branch January 20, 2023 19:38
tymurmustafaiev pushed a commit to tymurmustafaiev/rules_swift that referenced this pull request Jul 19, 2023
Without this value you get UB swiftlang/swift#63119

This hit us where it defaults to true with Swift 5.7.2 on Ubuntu 22.04,
but not on Ubuntu 20.04. I don't think this ever needs to be true for
bazel
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