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 with clang on linux #1805

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

Conversation

vimproved
Copy link
Contributor

Clang does not support the -fno-gnu-unique argument. Previously this was not added if BSD was true (presumably to work around FreeBSD support) but there is a CLANG variable serving that purpose. Use that instead.

@falkTX
Copy link
Owner

falkTX commented Sep 5, 2023

I would do this a different way. First add a CI job that tests for clang builds, and have that fail. Then add the fix.

a matrix thing in https://github.com/falkTX/Carla/blob/main/.github/workflows/build.yml should do the trick, I can add one soon.

@vimproved vimproved force-pushed the clang-linux branch 5 times, most recently from 809da01 to 7c3315b Compare October 15, 2023 01:15
Signed-off-by: Violet Purcell <vimproved@inventati.org>
Signed-off-by: Violet Purcell <vimproved@inventati.org>
@vimproved
Copy link
Contributor Author

@falkTX I modified this PR to add a clang CI, and also to automatically detect compiler based on --version output.

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