Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Fix build on FreeBSD by linking to libc++ #31

Merged
merged 1 commit into from Aug 4, 2018

Conversation

Freaky
Copy link
Contributor

@Freaky Freaky commented Aug 4, 2018

Maybe this conditional would be better off asking if we're using clang/gcc, but this fixes linking for me and allows cargo test to pass.

@Keats Keats merged commit 3c1524c into compass-rs:master Aug 4, 2018
@Keats
Copy link
Collaborator

Keats commented Aug 4, 2018

Thanks!

@Keats
Copy link
Collaborator

Keats commented Aug 4, 2018

I just realised, we define a is_bsd variable above in the build. We should use that instead of just special-casing freebsd no?

@valpackett
Copy link

Assuming libc++ if clang is the compiler doesn't sound right. Assuming libc++ on any BSD… I think most have switched at this point, yeah.

I guess the smart thing would be to use the c preprocessor to check for __GLIBCXX__ and such?

@Keats
Copy link
Collaborator

Keats commented Aug 4, 2018

Can I get some eyes on #32 by any chance? I'm not good with this kind of stuff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants