chadaustin / buffer-builder

Haskell library for efficiently building up buffers
BSD 3-Clause "New" or "Revised" License
26 stars 8 forks source link

Remove dependency on libstdc++ #18

Closed newhoggy closed 6 years ago

newhoggy commented 6 years ago

This fails to build in the absence of libstdc++. Looking at the source code it doesn't look like the c-bits actually use any C++ functionality.

chadaustin commented 6 years ago

I'd support this change. I don't have time to implement it immediately but if you want to put together a PR I could get it landed and released.

chadaustin commented 6 years ago

This dependency was added as part of https://github.com/chadaustin/buffer-builder/pull/12

@robdockins Can you clarify what systems needed this change?

I tried to convert the .cpp files to .c last night but I couldn't figure out how to convince Cabal to build them in C mode rather than C++ mode. If I could reproduce @robdockins's original issue, it probably wouldn't be hard to break the dependency on libstdc++.

robdockins commented 6 years ago

Sorry, I've paged out the original context for that request... I think it may have been Windows builds that were causing me trouble at the time, but I don't recall for sure.

chadaustin commented 6 years ago

0.2.4.7 is released with all of the FFI bits replaced with C99 instead of C++ code.

newhoggy commented 6 years ago

Thanks!