Skip to content

Commit 37cb790

Browse files
committed
CraterCrashGH-609 Try and build using shared libraries
1 parent c5fb389 commit 37cb790

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakePresets.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
9191
"CMAKE_C_COMPILER": "emcc",
9292
"CMAKE_CXX_COMPILER": "em++",
93-
"CMAKE_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake"
93+
"CMAKE_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake",
94+
"BUILD_SHARED_LIBS": "ON",
95+
"CMAKE_CXX_FLAGS": "-s SIDE_MODULE=1"
9496
}
9597
}
9698
]

0 commit comments

Comments
 (0)