Skip to content

Commit

Permalink
set web shared lib suffix to bring web builds into line with SCons
Browse files Browse the repository at this point in the history
  • Loading branch information
enetheru committed Jan 14, 2025
1 parent 7a9b1ee commit 947f007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/emsdkHack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if( EMSCRIPTEN )
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-sSIDE_MODULE=1")
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-sSIDE_MODULE=1")
set(CMAKE_SHARED_LIBRARY_SUFFIX) # remove the suffix from the shared lib
set(CMAKE_SHARED_LIBRARY_SUFFIX ".wasm") # SCons uses .wasm as a suffix
set(CMAKE_STRIP FALSE) # used by default in pybind11 on .so modules

# The Emscripten toolchain sets the default value for EMSCRIPTEN_SYSTEM_PROCESSOR to x86
Expand Down

0 comments on commit 947f007

Please sign in to comment.