Skip to content

vendor/sdl3: wasm foreign import library configurable - #7320

Open
colinlienard wants to merge 1 commit into
odin-lang:masterfrom
colinlienard:sdl3-wasm-foreign-import
Open

vendor/sdl3: wasm foreign import library configurable#7320
colinlienard wants to merge 1 commit into
odin-lang:masterfrom
colinlienard:sdl3-wasm-foreign-import

Conversation

@colinlienard

Copy link
Copy Markdown

Make sdl3 and sdl3_ttf usable with emscripten --use-port=sdl3 --use-port=sdl3_ttf flags by using a path ending with .o so the compiler doesn't concatenate the module name with the symbols, mirroring the configurable RAYLIB_WASM_LIB in vendor:raylib

Previous wasm behaviour is recoverable with -define:SDL3_WASM_LIB=system:SDL3, but it could only ever produce a module that fails to instantiate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant