Skip to content

[zig] Fix zig examples for wasm#5145

Closed
maiconpintoabreu wants to merge 1 commit into
raysan5:masterfrom
maiconpintoabreu:fix-zig-examples-wasm
Closed

[zig] Fix zig examples for wasm#5145
maiconpintoabreu wants to merge 1 commit into
raysan5:masterfrom
maiconpintoabreu:fix-zig-examples-wasm

Conversation

@maiconpintoabreu

Copy link
Copy Markdown
Contributor

This is to avoid issues like:

zig build -Dtarget=wasm32-emscripten shaders_julia_set

wasm-ld: error: ./.zig-cache/o/0065c975c3f510f2f1172863c35c7e75/libshaders_julia_set.a(.zig-cache/o/b1603d96a02a9f3e8ae33663be1ac2aa/shaders_julia_set.o): undefined symbol: __ubsan_handle_out_of_bounds
wasm-ld: error: ./.zig-cache/o/0065c975c3f510f2f1172863c35c7e75/libshaders_julia_set.a(.zig-cache/o/b1603d96a02a9f3e8ae33663be1ac2aa/shaders_julia_set.o): undefined symbol: __ubsan_handle_pointer_overflow

@raysan5

raysan5 commented Aug 27, 2025

Copy link
Copy Markdown
Owner

@maiconpintoabreu -fsanitize=address enables Address Sanitizer, that is useful for memory issues debugging increasing runtime overhead. Definitely not what we want for a production build.

Not sure why that error but this is not the solution.

@raysan5 raysan5 closed this Aug 27, 2025
@maiconpintoabreu

Copy link
Copy Markdown
Contributor Author

@raysan5 It can be set to "-fsanitize=undefined", if not set to anything it gives the error.

@maiconpintoabreu maiconpintoabreu deleted the fix-zig-examples-wasm branch March 10, 2026 11:01
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.

2 participants