diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-13 16:50:13 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-14 20:52:21 +0200 |
commit | 0c8bad166577f9973ba5701aee5ca5d9a3f3bc5d (patch) | |
tree | c5d0db1f5ca41f95755770bcbec76c0c3fcc62dc /erebos-tester.cabal | |
parent | 321859ab1fe4a6b1f3cc7084b8836474ff872e2b (diff) |
Changelog: Use custom C main instead of wrapper binary for unshare(2) call.
Diffstat (limited to 'erebos-tester.cabal')
-rw-r--r-- | erebos-tester.cabal | 38 |
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, |