summaryrefslogtreecommitdiff
path: root/erebos-tester.cabal
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-05-17 20:35:42 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-05-17 20:35:42 +0200
commit7831c5925b734539e3057a4dde9f3e3dc5be0303 (patch)
tree27ecddb78eb5d108ee4deb1a3053456d3fce28e6 /erebos-tester.cabal
parentff2dfa943d8b83cb3cccd97cb57717abc0e1a942 (diff)
Avoid multithreading in wrapper on newer compilers
Changelog: Fix unshare failing with newer compilers
Diffstat (limited to 'erebos-tester.cabal')
-rw-r--r--erebos-tester.cabal7
1 files changed, 7 insertions, 0 deletions
diff --git a/erebos-tester.cabal b/erebos-tester.cabal
index 18f0283..0cacc52 100644
--- a/erebos-tester.cabal
+++ b/erebos-tester.cabal
@@ -43,6 +43,13 @@ common common
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: