haskell / haskell/cabal

hsc2hs is instructed compile C++ headers with GCC

Open
#2,812 0 comments 0 reactions 0 assignees View on GitHub
Cabal: other type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

When interfacing with C++ with hsc2hs, you usually want to compile the headers with g++, not with gcc.
Cabal always passes `--cc=/usr/bin/gcc` to hsc2hs so it's not possible to specify, that the headers should be built with g++. This makes, using hsc2hs on C++ headers, very hard.
Interfacing with C++ code without hsc2hs, seems to choose the right compiler automatically, maybe some similar mechanism could be used for hsc2hs?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.