From 7831c5925b734539e3057a4dde9f3e3dc5be0303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Fri, 17 May 2024 20:35:42 +0200 Subject: Avoid multithreading in wrapper on newer compilers Changelog: Fix unshare failing with newer compilers --- erebos-tester.cabal | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- cgit v1.2.3