-
Notifications
You must be signed in to change notification settings - Fork 273
OpenBSD compatibility #4053
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
OpenBSD compatibility #4053
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to see portability to another platform! In a couple of places clang-format
will be unhappy with the formatting, though. Please take a look at the logs of the failing CI tasks.
As per tautschnig's suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added commits to address feedback.
Is there anything else that the collaborators need from me for this PR? I just want to confirm that you didn't need anything else from my end. |
@nanolith Yes, please help |
Fixed all clang-format issues. All green. :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 3236da7).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99968034
Patches to support CBMC on OpenBSD.
The ansi-c library has been patched to provide a compatible pthread_barrier_init function, and to bypass OpenBSD's stdio.h, which can't currently be parsed by the checker script.
The c_preprocess.cpp source file in ansi-c has been patched to pass the appropriate -std to Clang on OpenBSD. OpenBSD does not use GNU extensions with the system Clang.
The config.cpp source file in util has been patched so that OpenBSD defaults to c99, just like FreeBSD.
Patches have been protected with a
defined(__OpenBSD__)
check to ensure that they do not impact other builds.