Skip to content

Conversation

@maiconpintoabreu
Copy link
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
Copy link
Owner

raysan5 commented Aug 27, 2025

@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
Contributor Author

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

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