Skip to content

Commit

Permalink
WASM implies flag bundled-c-zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Jan 30, 2024
1 parent ef37f2f commit df14ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions cabal.project.wasi
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
package zlib
flags: +bundled-c-zlib

constraints: tasty >=1.5

-- https://github.com/haskellari/splitmix/pull/73
source-repository-package
type: git
Expand Down
4 changes: 2 additions & 2 deletions zlib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ flag bundled-c-zlib
default: False
manual: True
description: Use the bundled zlib C sources.
For GHCJS this is the default.
For GHCJS and WASM this is the default.

library
exposed-modules: Codec.Compression.GZip,
Expand Down Expand Up @@ -103,7 +103,7 @@ library
if flag(non-blocking-ffi)
cpp-options: -DNON_BLOCKING_FFI

if flag(bundled-c-zlib) || impl(ghcjs) || os(ghcjs)
if flag(bundled-c-zlib) || impl(ghcjs) || os(ghcjs) || arch(wasm32)
-- We bundle a complete copy of the C sources of zlib-1.3.1,
-- downloaded via update-c-sources.sh.
c-sources: cbits/adler32.c cbits/compress.c cbits/crc32.c
Expand Down

0 comments on commit df14ed5

Please sign in to comment.