Skip to content

build: fix spelling of clang #28055

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

Closed
wants to merge 1 commit into from

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Nov 4, 2019

Addresses rdar://problem/56866783

Addresses rdar://problem/56866783
@edymtt
Copy link
Contributor Author

edymtt commented Nov 4, 2019

@swift-ci test

@shahmishal
Copy link
Member

@swift-ci test Windows

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, though this doesnt really have any functional change. The Clang spelling is correct, and should match both AppleClang and Clang as identified by CMake. Furthermore, the check is case insensitive, so this should remain the same? If I'm wrong about the case, we should notice it pretty quickly with failures on Azure.

@edymtt
Copy link
Contributor Author

edymtt commented Nov 4, 2019

According to our tests, MATCHES seems case sensitive (and I cannot see any way to make that case sensitive).

Also, CMAKE_C_COMPILER seems to point to a path (in which case I would expect clang to be lower case) -- wondering if we should test CMAKE_C_COMPILER_ID instead

@compnerd
Copy link
Member

compnerd commented Nov 4, 2019

UGH, you are correct, the variable being checked is incorrect - that was supposed to be CMAKE_C_COMPILER_ID, not CMAKE_C_COMPILER.

@compnerd
Copy link
Member

compnerd commented Nov 4, 2019

I put up #28058 that corrects the variable. Sorry about that!

@edymtt
Copy link
Contributor Author

edymtt commented Nov 4, 2019

Thanks!

Duplicate of #28058

@edymtt edymtt closed this Nov 4, 2019
@swift-ci
Copy link
Contributor

swift-ci commented Nov 4, 2019

Build failed
Swift Test Linux Platform
Git Sha - 6a8bb26

@swift-ci
Copy link
Contributor

swift-ci commented Nov 4, 2019

Build failed
Swift Test OS X Platform
Git Sha - 6a8bb26

@edymtt edymtt deleted the lowercase-c-in-clang branch November 4, 2019 21:57
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.

4 participants