forked from GitHub/gf-core
gf-server: enable -rtsopts when compiling with ghc>=7.0
This commit is contained in:
@@ -19,6 +19,8 @@ executable pgf-http
|
|||||||
other-modules: PGFService FastCGIUtils Cache URLEncoding
|
other-modules: PGFService FastCGIUtils Cache URLEncoding
|
||||||
RunHTTP ServeStaticFile
|
RunHTTP ServeStaticFile
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
|
if impl(ghc>=7.0)
|
||||||
|
ghc-options: -rtsopts
|
||||||
|
|
||||||
build-depends: base >=4.2 && <5,
|
build-depends: base >=4.2 && <5,
|
||||||
old-time,
|
old-time,
|
||||||
@@ -44,6 +46,8 @@ executable pgf-service
|
|||||||
main-is: pgf-fcgi.hs
|
main-is: pgf-fcgi.hs
|
||||||
other-modules: PGFService FastCGIUtils Cache URLEncoding
|
other-modules: PGFService FastCGIUtils Cache URLEncoding
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
|
if impl(ghc>=7.0)
|
||||||
|
ghc-options: -rtsopts
|
||||||
|
|
||||||
if flag(fastcgi)
|
if flag(fastcgi)
|
||||||
build-depends: fastcgi >= 3001.0.2.2
|
build-depends: fastcgi >= 3001.0.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user