Skip to content

Disable SDL2 by default #18072

@aleck099

Description

@aleck099

USE_SDL is 1 by default
Everything is fine except for building SDL2
When USE_SDL=1, emcc will add an include path of its built-in SDL1, which contains same files with SDL2 (e.g. SDL_config.h)
Building SDL2 without additional flags will result in redefination errors

How to disable USE_SDL globally? Is there any configuration file or environment variable? Please don't tell me to use CFLAGS= because of many compability issues of many build systems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions