summaryrefslogtreecommitdiff
path: root/erebos-tester.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'erebos-tester.cabal')
-rw-r--r--erebos-tester.cabal38
1 files changed, 7 insertions, 31 deletions
diff --git a/erebos-tester.cabal b/erebos-tester.cabal
index a6b3b70..f900823 100644
--- a/erebos-tester.cabal
+++ b/erebos-tester.cabal
@@ -30,10 +30,12 @@ source-repository head
type: git
location: git://erebosprotocol.net/tester
-common common
+executable erebos-tester
ghc-options:
-Wall
-fdefer-typed-holes
+ -threaded
+ -no-hs-main
if flag(ci)
ghc-options:
@@ -41,36 +43,6 @@ common common
-- sometimes needed for backward/forward compatibility:
-Wno-error=unused-imports
- build-depends:
- base ^>= { 4.15, 4.16, 4.17, 4.18, 4.19, 4.20 },
-
-executable erebos-tester
- import: common
- ghc-options:
- -- disable interval timer to avoid spawing thread that breaks unshare(CLONE_NEWUSER)
- -with-rtsopts=-V0
- if impl(ghc >= 9.8)
- ghc-options:
- -- no multithreading is allowed for unshare(CLONE_NEWUSER)
- -single-threaded
-
- main-is: Wrapper.hs
- -- other-modules:
- -- other-extensions:
- build-depends:
- directory >=1.3 && <1.4,
- filepath ^>= { 1.4.2.1, 1.5.2 },
- linux-namespaces^>=0.1.3,
- process ^>=1.6.9,
- unix >=2.7 && <2.9,
- hs-source-dirs: src
- default-language: Haskell2010
-
-executable erebos-tester-core
- import: common
- ghc-options:
- -threaded
-
main-is: Main.hs
other-modules: Config
@@ -94,6 +66,9 @@ executable erebos-tester-core
autogen-modules: Paths_erebos_tester
+ c-sources:
+ src/main.c
+
other-extensions:
TemplateHaskell
default-extensions:
@@ -117,6 +92,7 @@ executable erebos-tester-core
TypeOperators
build-depends:
+ base ^>= { 4.15, 4.16, 4.17, 4.18, 4.19, 4.20 },
bytestring ^>= { 0.10, 0.11, 0.12 },
containers ^>= { 0.6.2.1, 0.7 },
directory ^>=1.3.6.0,