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

mk/re: add C11 and Atomic detection #61

Merged
merged 3 commits into from
Dec 22, 2020
Merged

mk/re: add C11 and Atomic detection #61

merged 3 commits into from
Dec 22, 2020

Conversation

sreimers
Copy link
Member

@sreimers sreimers commented Dec 20, 2020

Adding C11 detection (gcc/clang 5.x and newer). It can be disabled with make CC_C11=. When C11 is detected, it defines HAVE_ATOMIC. This can also be disabled with make HAVE_ATOMIC=.

Fallback tested on centos 7 with gcc 4.x and clang 3.x (clang -dumpversion shows 4.x gcc compatibility version and not the real version).

@sreimers sreimers marked this pull request as draft December 20, 2020 09:49
@sreimers sreimers changed the title mk/re: add C11 compiler detection mk/re: add C11 and Atomic detection Dec 20, 2020
@sreimers sreimers marked this pull request as ready for review December 20, 2020 13:50
@sreimers sreimers merged commit 81400d3 into master Dec 22, 2020
@sreimers sreimers deleted the c11 branch December 22, 2020 10:44
@sreimers sreimers added the enhancement New feature or request label Apr 9, 2021
@sreimers sreimers added this to the v2.0.0 milestone Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant