Skip to content

Fix unnecessary (and broken) preprocessor exclusion #1686

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
Sep 11, 2018

Conversation

copumpkin
Copy link
Contributor

@copumpkin copumpkin commented Sep 7, 2018

I'm not 100% sure this is the correct fix, but the __nameStringOK static function gets used even if DEPLOYMENT_RUNTIME_SWIFT is unset, so this just breaks the build (linkage) if this block of code gets excluded. It also just doesn't seem very Swift-specific, to my uneducated eye.

cc @DougGregor or anyone willing to suggest a better fix

I'm not 100% sure this is the correct fix, but the __nameStringOK static
function gets used even if DEPLOYMENT_RUNTIME_SWIFT is unset, so this
just breaks the build (linkage) if this block of code gets excluded. It
also just doesn't seem very Swift-specific, to my uneducated eye.
@parkera
Copy link
Contributor

parkera commented Sep 11, 2018

LGTM

@parkera
Copy link
Contributor

parkera commented Sep 11, 2018

@swift-ci test and merge

@swift-ci swift-ci merged commit 6bd6e4d into swiftlang:master Sep 11, 2018
@copumpkin
Copy link
Contributor Author

Thanks @parkera!

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.

3 participants