Skip to content

Commit 9359264

Browse files
libc emscripten support
1 parent ee390d4 commit 9359264

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

modules/hookset-libc/dub.sdl

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@ name "hookset-libc"
22
description "libc based hookset for numem."
33
authors "Kitsunebi Games" "Luna" "Inochi2D Project"
44
license "BSL-1.0"
5-
targetPath "out/"
5+
targetPath "out/"
6+
7+
configuration "emscripten" {
8+
platforms "emscripten"
9+
targetType "staticLibrary"
10+
dflags "-mattr=+bulk-memory,+multivalue,+reference-types"
11+
}
12+
13+
configuration "others" {
14+
targetType "staticLibrary"
15+
}

modules/hookset-wasm/dub.sdl

+27-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,30 @@ license "MIT"
55
targetPath "out/"
66

77
toolchainRequirements "ldc2"
8-
dflags "-mattr=+bulk-memory,+multivalue,+reference-types"
8+
dflags "-mattr=+bulk-memory,+multivalue,+reference-types"
9+
10+
configuration "emscripten32" {
11+
platforms "emscripten-wasm32"
12+
dflags "--disable-linker-strip-dead"
13+
}
14+
15+
configuration "emscripten64" {
16+
platforms "emscripten-wasm64"
17+
lflags "-mwasm64"
18+
dflags "--disable-linker-strip-dead"
19+
}
20+
21+
configuration "wasm32" {
22+
platforms "wasm-wasm32"
23+
targetType "staticLibrary"
24+
}
25+
26+
configuration "wasm64" {
27+
platforms "wasm-wasm64"
28+
targetType "staticLibrary"
29+
lflags "-mwasm64"
30+
}
31+
32+
configuration "other" {
33+
targetType "none"
34+
}

0 commit comments

Comments
 (0)