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

Surround "#pragma clang" with checks for Clang #192

Open
wants to merge 2 commits into
base: main-dev
Choose a base branch
from

Conversation

mbautin
Copy link
Contributor

@mbautin mbautin commented Sep 24, 2024

This is to prevent compilation issues on GCC 12 and GCC13.

These changes were performed automatically by the following script: https://gist.githubusercontent.com/mbautin/9a9ec9933dd4daf954b2a878f48a8048/raw
(generated by ChatGPT).

mbautin added a commit to yugabyte/SimSIMD that referenced this pull request Sep 24, 2024
…GCC 12 and GCC 13

These changes were performed automatically by the following script:
https://gist.githubusercontent.com/mbautin/9a9ec9933dd4daf954b2a878f48a8048/raw
(generated by ChatGPT).

See also ashvardanian#192.
mbautin added a commit to yugabyte/SimSIMD that referenced this pull request Sep 28, 2024
…GCC 12 and GCC 13

These changes were performed automatically by the following script:
https://gist.githubusercontent.com/mbautin/9a9ec9933dd4daf954b2a878f48a8048/raw
(generated by ChatGPT).

See also ashvardanian#192.
@ashvardanian
Copy link
Owner

Thanks for the contribution, @mbautin! I think we should safeguard those pragmas symmetrically for both GCC and Clang. I will take your PR as a starting point and augment it with more #if. Will merge in a few days 🤗

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