Skip to content

Commit 890c74f

Browse files
Add BULK_MEMORY_THRESHOLD definition to dlmalloc target
Allow building with bulk-memory feature enabled.
1 parent f0f0af9 commit 890c74f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ let package = Package(
1414
name: "dlmalloc",
1515
exclude: ["wasm/"],
1616
cSettings: [
17-
.headerSearchPath("wasm/internal-headers")
17+
.headerSearchPath("wasm/internal-headers"),
18+
// NOTE: Keep the value in sync with https://github.com/WebAssembly/wasi-libc/blob/wasi-sdk-27/Makefile#L44
19+
.define("BULK_MEMORY_THRESHOLD", to: "32"),
1820
]
1921
),
2022
]

0 commit comments

Comments
 (0)