Skip to content

Commit

Permalink
emscripten: fix float trap
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Mar 10, 2019
1 parent 40b37e6 commit 662cb81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/emscripten.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ add_flag("-s USE_SDL=2")
add_flag("-s USE_WEBGL2=1")
math(EXPR MEMORY_SIZE "1024 * 1024 * 256")
add_flag("-s TOTAL_MEMORY=${MEMORY_SIZE}")
add_flag("-s \"BINARYEN_TRAP_MODE='clamp'\"")
add_flag("-Wno-unknown-warning-option")
add_flag("-D'glBindSampler(a,b)='")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --preload-file \"${CMAKE_CURRENT_SOURCE_DIR}/resources/@resources\"")

0 comments on commit 662cb81

Please sign in to comment.