1
0
mirror of synced 2024-11-28 01:20:51 +01:00

build: Enable null sanitizer in the browser to avoid null derefs being okay

This commit is contained in:
WerWolv 2023-10-04 13:53:46 +02:00
parent 6c773c0135
commit d7bf3746f7

View File

@ -40,6 +40,8 @@ if (EMSCRIPTEN)
target_link_options(main PRIVATE -sWASM_BIGINT)
target_link_options(main PRIVATE -O1)
target_link_options(main PRIVATE -sLEGACY_GL_EMULATION)
target_link_options(main PRIVATE -fsanitize=null)
target_link_options(main PRIVATE -fsanitize-minimal-runtime)
target_link_libraries(main PRIVATE idbfs.js)
endif ()