Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable UBSAN in zig builds. #3292

Merged
merged 1 commit into from
Sep 5, 2023

Commits on Sep 5, 2023

  1. Disable UBSAN in zig builds.

    Zig debug builds automatically enable ubsan.
    As the fix for raysan5#1891 had to be reverted, debug builds using zig will crash like so:
    
    ```
    Illegal instruction at address 0x3237d2
    raylib/src/rlgl.h:3690:91: 0x3237d2 in rlDrawVertexArrayElements (/home/rcorre/src/raylib-zig-template/raylib/src/rcore.c)
        glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (const unsigned short *)buffer + offset);
    ```
    
    This disables UBSAN when using zig to build raylib.
    rcorre committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    ed5e6aa View commit details
    Browse the repository at this point in the history