Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 23, 2023
1 parent d9c2b0c commit 52cda65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Emscripten")
target_link_libraries(${PROJECT_NAME} "-s SIMD=1")
target_link_libraries(${PROJECT_NAME} "-s EVAL_CTORS=1")
target_link_libraries(${PROJECT_NAME} "-s WASM_BIGINT=1")
target_link_libraries(${PROJECT_NAME} "-s DISABLE_EXCEPTION_CATCHING=1")
# target_link_libraries(${PROJECT_NAME} "-s DISABLE_EXCEPTION_CATCHING=1")
target_link_libraries(${PROJECT_NAME} "-s ALLOW_MEMORY_GROWTH=1")
target_link_libraries(${PROJECT_NAME} "-s INITIAL_MEMORY=134217728")
target_link_libraries(${PROJECT_NAME} "-s EXPORTED_RUNTIME_METHODS=['callMain']")
Expand All @@ -43,7 +43,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Emscripten")
# target_link_libraries(${PROJECT_NAME} "-s ASSERTIONS=1")
# target_link_libraries(${PROJECT_NAME} "-s NO_DISABLE_EXCEPTION_CATCHING")

target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -pedantic -O3 -fno-exceptions -flto)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -pedantic -O1 -flto)
elseif(CMAKE_BUILD_TYPE MATCHES "Debug")
if (MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /Od /Zi)
Expand Down

0 comments on commit 52cda65

Please sign in to comment.