Skip to content
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

Fix build of dependent software with clang #93

Merged
merged 1 commit into from Jun 19, 2020
Merged

Fix build of dependent software with clang #93

merged 1 commit into from Jun 19, 2020

Conversation

pkubaj
Copy link
Contributor

@pkubaj pkubaj commented Jun 19, 2020

When using clang, altivec.h inclusion is taken care of by clang with -maltivec / -mno-altivec. Users shouldn't directly include it, it breaks compilation.

When using clang, altivec.h inclusion is taken care of by clang with -maltivec / -mno-altivec. Users shouldn't directly include it, it breaks compilation.
@CLAassistant
Copy link

CLAassistant commented Jun 19, 2020

CLA assistant check
All committers have signed the CLA.

@bashbaug
Copy link
Contributor

I'm fine merging this, but I do have one basic question (note, I am not an altivec expert!): Was including altivec.h ever valid for Clang? In other words, do we need a more precise #ifdef than just __clang__, or is it fine to skip including altivec.h for all Clang versions?

Can we enhance our CI testing to catch this issue?

Thanks!

@pkubaj
Copy link
Contributor Author

pkubaj commented Jun 19, 2020

I don't think so, I have LLVM 10.0.1 right now, but I remember fixing other software that did the same back when I was using LLVM 8.0. 8.0 was the first version that was usable on ppc targets. Previous versions didn't support C++ exceptions.

@bashbaug
Copy link
Contributor

Thanks for the prompt reply. I'll merge this change - it's clearly broken now and we can always add improvements later, if necessary.

@bashbaug bashbaug self-requested a review June 19, 2020 19:26
@bashbaug bashbaug merged commit d7283be into KhronosGroup:master Jun 19, 2020
@pkubaj pkubaj deleted the patch-1 branch July 8, 2020 22:27
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.

None yet

3 participants