-
Notifications
You must be signed in to change notification settings - Fork 717
Closed
Description
In the llvm-ffi
package I have C wrappers around C++ functions of LLVM in the file support.cpp
. However, the C++ header files of LLVM-3.5 and later use new C++11 features. Thus I have added
CC-Options: -std=c++11
to llvm-ffi.cabal
. Alternatively, I added -std=c++11
to the CFlags
field of llvm.pc
for use by pkg-config
.
Now I get these warnings:
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
This is nothing serious, the package works fine. However, the warnings are annoying. Would it help to have a Cxx-Options
field for Cabal descriptions? However, I do not know whether the Cabal file is the right place for the -std=c++11
option. Unfortunately, pkg-config
does not have CxxFlags
, too.