Skip to content

Commit 9577aa5

Browse files
committed
Disable -threaded on wasm
1 parent ada5a68 commit 9577aa5

File tree

2 files changed

+36
-16
lines changed

2 files changed

+36
-16
lines changed

test/call-stack-to-nix/package.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,30 @@ executables:
2929
stack-simple-exe:
3030
main: Main.hs
3131
source-dirs: app
32-
ghc-options:
33-
- -threaded
34-
- -rtsopts
35-
- -with-rtsopts=-N
32+
when:
33+
- condition: arch(wasm32)
34+
then:
35+
ghc-options: []
36+
else:
37+
ghc-options:
38+
- -threaded
39+
- -rtsopts
40+
- -with-rtsopts=-N
3641
dependencies:
3742
- stack-simple
3843

3944
tests:
4045
stack-simple-test:
4146
main: Spec.hs
4247
source-dirs: test
43-
ghc-options:
44-
- -threaded
45-
- -rtsopts
46-
- -with-rtsopts=-N
48+
when:
49+
- condition: arch(wasm32)
50+
then:
51+
ghc-options: []
52+
else:
53+
ghc-options:
54+
- -threaded
55+
- -rtsopts
56+
- -with-rtsopts=-N
4757
dependencies:
4858
- stack-simple

test/stack-simple/package.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,30 @@ executables:
2929
stack-simple-exe:
3030
main: Main.hs
3131
source-dirs: app
32-
ghc-options:
33-
- -threaded
34-
- -rtsopts
35-
- -with-rtsopts=-N
32+
when:
33+
- condition: arch(wasm32)
34+
then:
35+
ghc-options: []
36+
else:
37+
ghc-options:
38+
- -threaded
39+
- -rtsopts
40+
- -with-rtsopts=-N
3641
dependencies:
3742
- stack-simple
3843

3944
tests:
4045
stack-simple-test:
4146
main: Spec.hs
4247
source-dirs: test
43-
ghc-options:
44-
- -threaded
45-
- -rtsopts
46-
- -with-rtsopts=-N
48+
when:
49+
- condition: arch(wasm32)
50+
then:
51+
ghc-options: []
52+
else:
53+
ghc-options:
54+
- -threaded
55+
- -rtsopts
56+
- -with-rtsopts=-N
4757
dependencies:
4858
- stack-simple

0 commit comments

Comments
 (0)