Skip to content
Snippets Groups Projects
Commit 65bbbc19 authored by Alexander Vershilov's avatar Alexander Vershilov
Browse files

Provide cabal_macros in c2hs invocation.

This commit includes cabal_macros in c2hs call, so it will
be possible to use MIN_VERSION macros in chs files.
parent 36265fb1
No related branches found
No related tags found
No related merge requests found
......@@ -486,6 +486,7 @@ ppC2hs bi lbi =
-- Options from the current package:
[ "--cpp=" ++ programPath gccProg, "--cppopts=-E" ]
++ [ "--cppopts=" ++ opt | opt <- getCppOptions bi lbi ]
++ [ "--cppopts=-include" ++ (autogenModulesDir lbi </> cppHeaderName) ]
++ [ "--include=" ++ outBaseDir ]
-- Options from dependent packages
......
......@@ -2,6 +2,7 @@
1.23.x.x (current development version)
* Deal with extra C sources from preprocessors (#238).
* Include cabal_macros.h when running c2hs.
1.22.0.0 Johan Tibell <johan.tibell@gmail.com> January 2015
* Support GHC 7.10.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment